.clan-ban-list-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow: auto;
}

.clan-ban-list-content {
    background-color: #1e1e2d;
    margin: 50px auto;
    padding: 20px;
    border-radius: 25px;
    max-width: 900px;
    position: relative;
    color: #fff;
}

/* Адаптивность модального окна для мобильных */
@media (max-width: 720px) {
    .clan-ban-list-content {
        margin: 20px 10px;
        padding: 15px;
        border-radius: 15px;
        max-width: none;
    }
    
    .clan-ban-list-close {
        top: 5px;
        right: 5px;
        font-size: 24px;
    }
}

.clan-ban-list-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    cursor: pointer;
}

.clan-ban-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.clan-ban-list-table th, .clan-ban-list-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #2d2d3d;
}

.clan-ban-list-table th {
    background-color: #2d2d3d;
}

.clan-ban-list-table tr:hover {
    background-color: #2d2d3d;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 720px) {
    .clan-ban-list-table {
        font-size: 12px;
    }
    
    .clan-ban-list-table th, 
    .clan-ban-list-table td {
        padding: 8px 5px;
    }
    
    /* Скрываем менее важные колонки на мобильных */
    .clan-ban-list-table th:nth-child(3),
    .clan-ban-list-table td:nth-child(3) {
        display: none;
    }
    
    /* Уменьшаем ширину колонок */
    .clan-ban-list-table th:nth-child(1),
    .clan-ban-list-table td:nth-child(1) {
        width: 30%;
    }
    
    .clan-ban-list-table th:nth-child(2),
    .clan-ban-list-table td:nth-child(2) {
        width: 40%;
    }
    
    .clan-ban-list-table th:nth-child(4),
    .clan-ban-list-table td:nth-child(4) {
        width: 30%;
    }
    
    /* Адаптируем кнопки */
    .clan-chat-unban,
    .clan-chat-ban-list {
        padding: 4px 8px;
        font-size: 11px;
        margin: 2px;
    }
}

/* Дополнительная адаптивность для очень маленьких экранов */
@media (max-width: 490px) {
    .clan-ban-list-table {
        font-size: 11px;
    }
    
    .clan-ban-list-table th, 
    .clan-ban-list-table td {
        padding: 6px 3px;
    }
    
    /* Скрываем еще больше колонок на очень маленьких экранах */
    .clan-ban-list-table th:nth-child(2),
    .clan-ban-list-table td:nth-child(2),
    .clan-ban-list-table th:nth-child(5),
    .clan-ban-list-table td:nth-child(5) {
        display: none;
    }
    
    /* Оставляем только имя игрока и кнопки */
    .clan-ban-list-table th:nth-child(1),
    .clan-ban-list-table td:nth-child(1) {
        width: 60%;
    }
    
    .clan-ban-list-table th:nth-child(4),
    .clan-ban-list-table td:nth-child(4) {
        width: 40%;
    }
    
    /* Делаем кнопки еще компактнее */
    .clan-chat-unban,
    .clan-chat-ban-list {
        padding: 3px 6px;
        font-size: 10px;
        margin: 1px;
    }
    
    /* Адаптируем модальное окно для очень маленьких экранов */
    .clan-ban-list-content {
        margin: 10px 5px;
        padding: 10px;
        border-radius: 10px;
    }
    
    .clan-ban-list-close {
        top: 3px;
        right: 3px;
        font-size: 20px;
    }
}

.clan-chat-unban {
    background-color: #28a745;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.clan-chat-unban:hover {
    background-color: #218838;
}

.clan-chat-ban-list {
    background-color: #dc3545;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}

.clan-chat-ban-list:hover {
    background-color: #c82333;
}
.clan-chat-ban-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clan-chat-ban-modal-content {
    background-color: #2c2f33;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    color: white;
}

.clan-chat-ban-modal-header {
    padding: 15px;
    border-bottom: 1px solid #40444b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clan-chat-ban-modal-header h3 {
    margin: 0;
}

.clan-chat-ban-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.clan-chat-ban-modal-body {
    padding: 15px;
}

.clan-chat-ban-modal-body table {
    width: 100%;
    border-collapse: collapse;
}

.clan-chat-ban-modal-body th,
.clan-chat-ban-modal-body td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #40444b;
}

.clan-chat-ban-modal-body th {
    background-color: #36393f;
}

.clan-chat-unban {
    background-color: #7289da;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.clan-chat-unban:hover {
    background-color: #677bc4;
}
/* Clan Chat Styles */
.clan-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #1e1e2d;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.clan-chat-container.active {
    transform: translateY(0);
    opacity: 1;
}

.clan-chat-header {
    padding: 15px;
    background: #2a2a3c;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clan-chat-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.clan-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.clan-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #1e1e2d;
}

.clan-chat-form {
    display: flex;
    padding: 15px;
    background: #2a2a3c;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.clan-chat-form textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #3a3a4d;
    border-radius: 4px;
    background: #1e1e2d;
    color: #fff;
    resize: none;
    height: 40px;
    max-height: 100px;
}

.clan-chat-form button {
    margin-left: 10px;
    padding: 0 15px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.clan-chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    background: #2a2a3c;
}

.clan-chat-message.my-message {
    background: #2a3c2a;
}

.leader-message {
    border-left: 3px solid #ffc107;
}

.deputy-message {
    border-left: 3px solid #2196F3;
}

.clan-chat-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.clan-chat-username {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.clan-chat-username:hover {
    text-decoration: underline;
}

.clan-chat-time {
    color: #aaa;
}

.clan-chat-message-text {
    color: #eee;
    word-wrap: break-word;
}

.clan-chat-actions {
    margin-top: 5px;
    display: flex;
    justify-content: flex-end;
}

.clan-chat-actions button {
    padding: 1px 5px; /* было 2px 5px, уменьшили вертикальный padding */
    margin-left: 5px;
    font-size: 11px;
    background: #3a3a4d;
    color: #fff;
    border: none;
    border-radius: 1px;
    cursor: pointer;
    height: 18px; /* можно явно задать высоту */
    line-height: 16px; /* для выравнивания текста */
}

.clan-chat-actions button:hover {
    background: #4a4a5d;
}

.clan-chat-actions .clan-chat-ban {
    background: #f44336;
}

.clan-chat-actions .clan-chat-ban:hover {
    background: #ff6659;
}
.danger {
    background-color: #ff4d4d !important;
    color: white !important;
}

.danger:hover {
    background-color: #ff3333 !important;
}

.warning-message {
    text-align: center;
    padding: 20px;
}

.warning-message svg {
    color: #ffc107;
    margin-bottom: 15px;
}

.warning-message h3 {
    margin: 10px 0;
    color: #ff4d4d;
}

.warning-message p {
    color: #777;
    line-height: 1.5;
}
.clan-applications-container {
    padding: 20px;
    background: #1a1529;
    border-radius: 8px;
    margin-top: 20px;
}

.no-applications {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.clan-applications-table {
    width: 100%;
    border-collapse: collapse;
}

.clan-applications-table th, 
.clan-applications-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #2d2d3d;
}

.btn-accept, .btn-reject {
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    display: inline-block; /* Это важно для горизонтального расположения */
}

/* Адаптивность кнопок заявок для мобильных устройств */
@media (max-width: 720px) {
    .btn-accept, .btn-reject {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        text-align: center !important;
    }
    
    .btn-reject {
        margin-bottom: 0 !important;
    }
}
.btn-accept {
    background: #28a745;
    color: white;
}
.btn-accept {
    background: #28a745;
    color: white;
}
.btn-reject {
    background: #dc3545;
    color: white;
}
.couns {
    background-color: #dc3545;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}
.player-link {
    color: #4d9eff;
    text-decoration: none;
    transition: color 0.2s;
}

.player-link:hover {
    color: #7ab4ff;
    text-decoration: underline;
}
.color-selection {
    margin-bottom: 15px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-option {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.color-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.color-option input:checked ~ .color-checkmark {
    border: 2px solid white;
    box-shadow: 0 0 0 2px #7289da;
}

/* Цвета вариантов */
.red .color-checkmark { background: #ff4d4d; }
.blue .color-checkmark { background: #4d79ff; }
.pink .color-checkmark { background: #ff4dff; }
.purple .color-checkmark { background: #a64dff; }
.green .color-checkmark { background: #4dff4d; }
.gold .color-checkmark { background: #ffcc4d; }
.cyan .color-checkmark { background: #00ffff; }
.coral .color-checkmark { background: #ff7f50; }
.lime .color-checkmark { background: #bfff00; }
.violet .color-checkmark { background: #8b00ff; }
.amber .color-checkmark { background: #ffbf00; }
.highlighted-clan {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(var(--highlight-color, 0, 255, 255), 0.5);
    animation: borderGlow 2s infinite alternate;
    box-shadow: 0 0 10px rgba(var(--highlight-color, 0, 255, 255), 0.5);
}

@keyframes borderGlow {
    from {
        border-color: rgba(var(--highlight-color, 0, 255, 255), 0.5);
        box-shadow: 0 0 10px rgba(var(--highlight-color, 0, 255, 255), 0.5);
    }
    to {
        border-color: rgba(var(--highlight-color, 100, 255, 255), 0.8);
        box-shadow: 0 0 20px rgba(var(--highlight-color, 100, 255, 255), 0.8);
    }
}
.card {
    margin-right: -15px;
    margin-left: -15px;
	margin: 10px -10px 0;
}
.top-one {
    background-color: #ffd700; /* Красный цвет для Топ 1 */
    padding: 2px 6px; /* Отступы вокруг текста */
    border-radius: 3px; /* Скругление углов */
    font-weight: bold; /* Полужирный текст */
}

.top-two {
    background-color: #bfe0ff; /* Оранжевый цвет для Топ 2 */
    padding: 2px 5px; /* Отступы вокруг текста */
    border-radius: 3px; /* Скругление углов */
    font-weight: bold; /* Полужирный текст */
}

.top-three {
    background-color: #f8a785; /* Желтый цвет для Топ 3 */
    padding: 2px 5px; /* Отступы вокруг текста */
    border-radius: 3px; /* Скругление углов */
    font-weight: bold; /* Полужирный текст */
}
.index-one {
    color: #000000; /* Цвет для индекса первого места */
    font-weight: bold; /* Пример: жирное начертание */
}

.index-two {
    color: #000000; /* Цвет для индекса второго места */
    font-weight: bold; /* Пример: жирное начертание */
}

.index-three {
    color: #000000; /* Цвет для индекса третьего места */
    font-weight: bold; /* Пример: жирное начертание */
}

.store-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 10px;
    width: 100%;
    padding: 15px;
    min-height: 40px;
    border-radius: 8px;
    color: #ffdb5c;
    background: #ffdb5c10;
    margin: 10px 0 15px 0;
}
.store-info > svg {
    height: 20px;
    fill: #ffdb5c;
}
.table-block-tovar-info .text-right.true {
    width: 15px;
    height: 15px;
    display: flex;
    background-color: hsl(143deg 72% 75% / 10%);
    border-radius: 3px;
    color: #90edb3;
    align-items: center;
    justify-content: center;
}
.clans-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.clans-block {
    color: var(--text-default);
    background: var(--bg-modal);
    display: flex;
    border-radius: 16px;
    height: 126px;
    padding: 10px;
    position: relative;
    align-items: center;
    justify-content: space-between;
}
.clans-block-info > div > div > img {
    border-radius: 50%;
    height: 20px;
    width: 20px;
    object-fit: cover;
}
.clans-block:hover .clans-block-info > div > div > b {
    color: var(--span);
}
.clans-block:hover .clans-block-info > div > div > span {
    color: var(--span);
}
.clans-block > img {
    border-radius: 6px;
    height: 40px;
    width: 40px;
    object-fit: cover;
    z-index: 1;
}
.clans-block-info {
    display: grid;
    z-index: 1;
}
.clans-block-info > b {
    color: var(--text-default);
}
.clans-block-info > div {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    font-size: 8px;
    justify-items: start;
    align-items: center;
}
.clans-block-info > div > div {
    display: grid;
}
.clans-block-info > div > div > b {
    transition: .5s;
    color: var(--text-custom);
}
.clans-block-info > div > div > span {
    transition: .5s;
}
.clans-block-info-num {
    margin-left: auto;
    text-shadow: -1px -1px 0 var(--fon), 1px -1px 0 var(--fon), -1px 1px 0 var(--fon), 1px 1px 0 var(--fon);
    white-space: nowrap;
    font-weight: 600;
    font-size: 8px;
    z-index: 1;
    margin-right: -20px;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}
.clan-info-blocks {
    display: grid;
}
.clan-info-block {
    overflow: hidden;
    border-radius: 16px;
    padding: 20px;
}
.clan-table-card {
    display: grid;
    padding: 15px;
    z-index: 1;
    box-shadow: 0 0 10px rgb(0 0 0 / 50%);
    background-color: var(--navbar-color);
    border-radius: 0px 0px 6px 6px;
    overflow-x: auto;
}
.clans-block {
    position: relative;
}

.clan-rank {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #843db4;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
}
.clan_custom_role_popup {
    position: absolute;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

.clan_custom_role_form {
    display: none;
    gap: 5px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.clan_custom_role_form[style*="display: inline-block"] {
    display: flex !important;
}

.clan_custom_role_form input[type="text"] {
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    padding: 4px 8px !important;
    outline: none !important;
    font-size: 14px !important;
    width: 120px !important;
    height: 24px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.clan_custom_role_form button[type="submit"] {
    background-color: #28a745 !important;
    color: #fff !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    margin: 0 !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

.clan_custom_role_form button[type="submit"]:hover {
    background-color: #218838 !important;
}

/* Стили для внешнего контейнера с inline стилями */
div[style*="display: inline-flex"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    vertical-align: middle !important;
}

.clan-role-msg {
    margin-left: 5px;
    font-size: 12px;
    color: #28a745;
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.clan-info-banner {
    position: absolute;
    z-index: 1;
    left: 0px;
    border-radius: 10px;
    background-repeat: no-repeat !important;
    background-position-y: 50% !important;
    background-size: cover !important;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease; /* Плавный переход для изменения масштаба */
}

.clan-info-banner:hover {
    cursor: pointer;
    transform: scale(0.98);
}

.clan-info-stats {
    position: absolute;
    z-index: 100;
    top: 170px;
    width: 100%;
    display: flex;
    align-items: end;
    gap: 15px;
}
@media (max-width: 600px) {
    .clan-info-stats {
        display: grid !important;
    }
    .clan-info-block {
        height: 430px;
    }
    .clan-avatar-main {
        display: flex;
        justify-content: center;
        padding: 0 !important;
    }
    .clan-info-name {
        display: flex;
        justify-content: center !important;
        width: 100% !important;
        margin: 0;
    }
    .clan-info-main {
        display: grid;
        justify-content: center;
        margin: 0;
    }
}
.clan-info-stat-left {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    flex-wrap: wrap;
    text-align: center;
    flex: 1 1;
}
.clan-info-stat-right {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    flex-wrap: wrap;
    text-align: center;
    flex: 1 1;
}
.clan-info-list {
    width: 100px;
}
@media (min-width: 430px) {
    .clan-info-list > a {
        font-size: 20px;
        font-weight: 600;
    }
}
@media (max-width: 430px) {
    .clan-info-list > a {
        font-weight: 600;
    }
}
@media (max-width: 500px) {
    .clan-applications-table th, 
    .clan-applications-table td {
        font-size: 11px;
        font-weight: 600;
    }
    
    .color-options {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    
    /* Адаптация таблицы заявок для очень маленьких экранов */
    .clan-applications-table th, 
    .clan-applications-table td {
        padding: 8px 5px;
    }
    
    /* Уменьшаем ширину колонок */
    .clan-applications-table th:nth-child(1),
    .clan-applications-table td:nth-child(1) {
        width: 35%;
    }
    
    .clan-applications-table th:nth-child(2),
    .clan-applications-table td:nth-child(2) {
        width: 35%;
    }
    
    .clan-applications-table th:nth-child(3),
    .clan-applications-table td:nth-child(3) {
        width: 30%;
    }
}
.clan-info-list > div {
    font-size: 10px;
    color: var(--text-custom);
}

.player_role_clan {
    color: var(--span);
    width: max-content;
    font-weight: 600;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 6px;
    transition: .5s;
    background: var(--tablcolor);
    box-shadow: 0 0 10px rgb(0 0 0 / 50%);
    border: solid 2px var(--navbar-color);
}
@media (min-width: 1130px) {
    .clan-grid-2 {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 15px;
		    margin-right: -15px;
    margin-left: -15px;
	margin: 10px -10px 0;
    }
    .clan-grid-2 .clan-grid-2-sticky {
        display: grid;
        gap: 15px;
        height: min-content;
        top: 15px;
        position: sticky;
        order: 1;
    }
}
@media (max-width: 1130px) {
    .clan-grid-2 .clan-grid-2-sticky {
        display: grid;
        gap: 15px;
        margin-bottom: 15px;
    }
}
.clan-tops {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-custom);
}
.clan_card {
    padding: 20px;
    background-color: var(--card);
    border: 0.5px solid rgb(255 255 255 / 10%);
    border-radius: 12px;
    margin-bottom: 15px;
}
.clan-card-info {
    display: grid;
    gap: 15px;
    padding: 20px;
    background-color: var(--card);
    border: 0.5px solid rgb(255 255 255 / 10%);
    border-radius: 12px;
}
.clan-card-info-2 {
    display: grid;
    gap: 15px;
    padding: 15px;
    color: var(--green);
    background-color: #85f47910;
    border-radius: 6px;
}
.clan-card-info-warning {
    display: grid;
    gap: 15px;
    padding: 15px;
    color: #f46464;
    background: #f4646410;
    border-radius: 16px;
}
.clan-info-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
}
.clan-info-title-2 {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: var(--green);
}
.clan-info-title-2 svg {
    width: 20px;
    height: 20px;
    fill: var(--green);
}
.clan-info-title-warning {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #f46464;
}
.clan-info-title-warning svg {
    width: 20px;
    height: 20px;
    fill: #f46464;
}
.clan-info-texts {
    display: grid;
    gap: 5px;
}
.clan-info-text-1 {
    color: var(--text-custom);
    font-size: 12px;
    font-weight: 500;
}
.clan-create {
    display: flex;
    height: 40px;
    width: 100%;
    box-sizing: border-box;
    color: var(--span);
    font-weight: 600;
    cursor: pointer;
    transition: .5s;
    background: var(--button);
    border: .5px solid var(--span);
    border-radius: 6px;
    justify-content: center;
    align-items: center;
}
.clan-create:hover {
   color: #fff;
	background-color: #843db4
}
.clan-avaname {
    display: flex;
    gap: 10px;
	margin-top: 69px;
}
.clan-avaname img {
    border-radius: 8px;
    height: 40px;
    width: 40px;
    object-fit: cover;
    z-index: 1;
}
.clan-players {
    display: flex;
    gap: 5px;
    color: var(--text-custom);
    font-size: 12px;
    z-index: 1;
    align-items: center;
    transition: .5s;
	margin-top: 70px;
}
.clan-players svg {
    width: 14px;
    height: 14px;
    fill: var(--text-custom);
    transition: .5s;
}
.clans-block:hover .clan-players {
    color: var(--span);
}
.clans-block:hover .clan-players svg {
    fill: var(--span);
}
.clan-menu-info {
    padding: 15px;
    background: var(--card);
    border: 0.5px solid rgb(255 255 255 / 10%);
    border-radius: 12px;
}
.clan-info-desc {
    font-size: 14px;
    color: var(--text-custom);
    margin-bottom: 10px;
}
.clan-infos {
    display: grid;
    gap: 5px;
}
.clan-info-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-custom);
    padding-top: 5px;
    border-top: 1px solid rgb(255 255 255 / 10%);
}
.clan_delete_user {
    display: inline;
    cursor: pointer;
    height: 25px;
    font-size: 10px;
    font-weight: 600;
    padding: 0px 10px;
    border-radius: 6px;
    color: var(--text-custom);
    background: var(--button);
    border: 0.5px solid rgb(255 255 255 / 10%);
    box-sizing: border-box;
    transition: .5s;
}
.clan_delete_user:hover {
    color: var(--span) !important;
    background: var(--button-hover) !important;
}
.clan-info-name {
    width: max-content;
    margin: 0 0 25px 0;
    text-shadow: -1px -1px 0 var(--fon), 1px -1px 0 var(--fon), -1px 1px 0 var(--fon), 1px 1px 0 var(--fon);
}
.clan-info-main {
    color: var(--text-default);
    padding: 0px 5px;
    text-shadow: 0 0 1px #000;
    margin: 0 0 10px 0;
}
.clan-punkt-info {
    color: var(--text-custom);
    text-shadow: -1px -1px 0 var(--fon), 1px -1px 0 var(--fon), -1px 1px 0 var(--fon), 1px 1px 0 var(--fon);
}
.clan-punkt-info > svg {
    width: 16px;
    margin-bottom: 3px;
    fill: var(--text-custom);
    text-shadow: -1px -1px 0 var(--fon), 1px -1px 0 var(--fon), -1px 1px 0 var(--fon), 1px 1px 0 var(--fon);
}
.clan-block-back {
    display: flex;
    align-items: center;
    gap: 5px;
	border: 1px solid rgb(64 42 98);
    background-color: var(--bg-modal);
    border-radius: 8px;
    color: var(--text-custom);
    padding: 5px 20px;
    transition: .5s;
}
.clan-block-back svg {
    width: 12px;
    height: 12px;
    fill: var(--text-custom);
    transition: .5s;
}
.clan-block-back:hover {
    color: #fff;
	background-color: #a73b60
}
.clan-block-back:hover svg {
    fill: var(--span);
}
.clan-back-leave {
    display: flex;
    gap: 15px;
    position: absolute;
    z-index: 1;
    top: 15px;
    left: 15px;
}
@media (min-width: 1130px) {
    .clan-block-grid-2 {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 15px;
				    margin-right: -15px;
    margin-left: -15px;
	margin: 10px -10px 0;
    }
    .clan-block-grid-2 .clan-block-grid-2-sticky {
        height: min-content;
        top: 15px;
        position: sticky;
    }
}
@media (max-width: 1130px) {
    .clan-block-grid-2 .clan-block-grid-2-sticky {
        margin-bottom: 15px;
    }
}
.clan-info-text-2 {
    color: var(--text-custom);
    font-size: 12px;
    font-weight: 500;
    opacity: .6;
}
.clan-info-text-3 {
    color: var(--green);
    font-size: 12px;
    font-weight: 500;
    opacity: .6;
}
.clan-info-text-warning {
    color: #f46464;
    font-size: 12px;
    font-weight: 500;
    opacity: .6;
}
.clan-players-namerole {
    display: flex;
    gap: 5px;
}
.clan-players-role {
    color: var(--text-custom);
}
.clan-join-name {
    color: #c9e91e;
    transition: .5s;
    opacity: 1;
	font-size: 14px;
}
.clan-join-name:hover {
    color: var(--span);
}
.clan_loader_block {
    display: grid;
    gap: 10px;
}
.clan-loader {
    position: relative;
    background: var(--news);
    overflow: hidden;
    height: 60px;
    border-radius: 6px;
}
.clan-loader::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #6080ff10, rgba(255, 255, 255, 0) 100%);
    animation: clan-shimmer 1.5s infinite;
}
@keyframes clan-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}
.clan-settings-block {
    border-radius: 6px;
    padding: 30px;
    background-color: var(--navbar-color);
}
.clan-settings-block h3 {
    padding-bottom: 15px;
    color: var(--text-default);
    border-bottom: solid 2px var(--bg-color);
}
.clan-avatar-main {
    padding: 0 12px 0 42px;
}
.clan-avatar-main-img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    vertical-align: top;
    width: 140px;
    height: 140px;
    transition: .5s;
}
.clan-avatar-main-img img:not(.cropImage) {
    text-indent: 100%;
    overflow: hidden;
    white-space: nowrap;
    word-wrap: normal;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.clan-avatar-main-img img {
    outline: solid 12px var(--navbar-color);
    outline-offset: 0;
    border-radius: 8px;
}
.clan-scroll {
    overflow: auto;
    height: 200px;
    padding: 0 5px 0px 0px;
}
.clan-scroll::-webkit-scrollbar {
    background-color: var(--fon);
    height: 3px;
    width: 3px;
}
.table-block-tovar {
    display: grid;
    gap: 5px;
    position: relative;
    margin: 15px 0px;
}
.table-block-tovar-info {
    display: flex;
    height: 30px;
    padding: 0px 15px;
    font-size: 12px;
	margin-top: 1%;
    border-radius: 8px;
    transition: .5s;
    background: var(--input-form);
    justify-content: space-between;
    align-items: center;
}
.table-block-tovar-info .text-left {
    transition: .5s;
    color: var(--text-custom);
}

.input-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.clan_back {
    display: block;
    width: 100%;
    height: 20em;
    border-radius: 11px;
    position: relative;
}
.header_clan_info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: 100%;
    padding: 15px;
    position: relative;
    justify-content: flex-end;
}
.clan-block {
    position: absolute;
    left: 1%;
    bottom: -16%;
    display: flex;
    gap: 20px;
    align-items: end;
}
.header_clan_info img {
    height: 100px;
    width: 100px;
    border-radius: 50px;
}
.clan_nickname {
    display: flex;
    font-size: 20px;
    font-weight: 700;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: -75px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    width: max-content;

    /* Добавление фона */
    background-color: rgb(0 0 0 / 80%); /* Цвет фона, можно изменить */
    padding: 10px; /* Отступы для центрирования текста */
    border-radius: 5px; /* Закругление углов фона */
    
    /* Центрирование текста */
    text-align: center; /* Центрирование текста */
}
.clan_status {
    display: flex;
    align-items: center;
    gap: 5px;
}
.status_title {
    font-size: 16px;
    color: var(--text-default);
}
.status_content {
    color: #b2ff00;
    font-size: 14px;
}
.block-knopka-point {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}
.menu-button {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    height: 35px;
    background: var(--button);
    border: 0.5px solid rgb(255 255 255 / 10%);
    border-radius: 8px;
    font-weight: 500;
    justify-content: center;
    font-size: 12px;
    line-height: normal;
    color: var(--text-custom);
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.menu-button:hover {
    color: var(--span);
    background: var(--button-hover);
}
.table-card {
    display: grid;
    padding: 15px;
    background: var(--card);
    border: 0.5px solid rgb(255 255 255 / 10%);
    border-radius: 12px;
    overflow-x: auto;
}
.top_list_scroll {
    height: 200px;
    overflow: hidden;
    overflow-y: scroll;
    padding: 0 5px 0px 0px;
}
.top_players_list_body li {
    background: var(--input-form);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 0.3fr 5fr 0.5fr;
    padding: 15px;
    transition: 0.3s;
    position: relative;
    justify-items: start;
    align-items: center;
}
.top_players_list_body li:not(:last-child) {
    margin-bottom: 3px;
}
.top_players_list_body li span {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: var(--text-custom);
    z-index: 2;
    position: relative;
}
.top_players_avatar {
    width: 26px !important;
    height: 26px !important;
    border-radius: 4px;
    outline: 2px solid var(--transparent);
    position: relative;
}
.DataPagination {
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#DataPagination {
    display: flex;
    gap: 7px;
}
#DataPagination>button:disabled {
    background: var(--span);
    font-weight: 700;
    color: var(--text-default-invert);
    cursor: default;
    -webkit-user-drag: none;
    user-select: none;
}
#DataPagination>button:hover:disabled {
    background: var(--span);
    font-weight: 700;
    color: var(--text-default-invert);
    cursor: default;
    -webkit-user-drag: none;
    user-select: none;
}
#DataPagination>button {
    display: flex;
    height: 40px;
    width: 40px;
    padding: 0px 15px;
    background: var(--span-low);
    border-radius: 25px;
    font-weight: 400;
    transition: 0.3s;
    color: var(--span);
    font-size: 12px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#DataPagination>button:hover {
    background: var(--span-middle);
    color: var(--span);
    opacity: 1;
}
.clan-settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 20px;
    margin-top: 15px;
}
.clan-settings-button {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    height: 35px;
    background: var(--button);
    border: 0.5px solid rgb(255 255 255 / 10%);
    border-radius: 8px;
    font-weight: 500;
    justify-content: center;
    font-size: 12px;
    line-height: normal;
    color: var(--text-custom);
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.clan-settings-button:hover {
    color: var(--span);
    background: var(--button-hover);
}
@media (max-width: 768px) {
    div[style*="display: flex"] {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    /* Вертикальное расположение всех кнопок */
    .block-knopka-point {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .block-knopka-point .menu-button {
        width: 100% !important;
        margin-top: 0 !important;
        order: unset !important;
    }
}
.save-delete-avabanner {
    display: flex;
    gap: 15px;
    padding: 15px 20px 20px 20px;
}
.save-avabanner {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    height: 35px;
    background: var(--button);
    border: 0.5px solid rgb(255 255 255 / 10%);
    border-radius: 8px;
    font-weight: 500;
    justify-content: center;
    font-size: 12px;
    line-height: normal;
    color: var(--text-custom);
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}
.save-avabanner:hover {
    color: var(--span);
    background: var(--button-hover);
}
.clan-main-info {
    background-color: var(--navbar-color);
    border-radius: 8px;
    display: flex;
    flex: 1 0 auto;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
}
.clan-info-block2 {
    display: flex;
    flex-direction: column;
}
.clan-info-title2 {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, var(--text-default) 0, var(--text-custom));
    -webkit-background-clip: text;
    font-size: 40px;
    font-weight: 800;
    line-height: 105%;
}
.clan-info-description {
    color: var(--text-custom);
}
.clan-create-block {
    display: grid;
    gap: 15px;
    background: var(--navbar-color);
    padding: 15px;
    border-radius: 8px;
}
.clan-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.clan-create-info {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-custom);
}
.clan_members_list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.сlan_members_item {
    background: var(--bg);
    border: 1px solid rgb(64 42 98);
    border-radius: 8px;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 0 10px;
    width: 100%;
    position: relative;
}

/* Адаптивность списка игроков для мобильных устройств */
@media (max-width: 720px) {
    .сlan_members_item {
        padding: 0 8px;
        min-height: 35px;
    }
    
    .clan_user_nick {
        max-width: 60px !important;
        font-size: 11px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    
    .сlan_members_item_left .clan_user_nick {
        max-width: 60px !important;
        font-size: 11px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    
    /* Скрываем кнопку редактирования, оставляем только удаление */
    .clan_svg_del[onclick*="edit"] {
        display: none !important;
    }
    
    /* Показываем только кнопку удаления */
    .clan_svg_del[onclick*="delete"] {
        display: block !important;
    }
    
    .clan_user_avatar {
        height: 16px !important;
        width: 16px !important;
    }
    
    .сlan_members_item_left .clan_user_avatar {
        height: 16px !important;
        width: 16px !important;
    }
    
    .clan_user_role {
        font-size: 10px !important;
    }
}

/* Дополнительная адаптивность для очень маленьких экранов */
@media (max-width: 490px) {
    .сlan_members_item {
        padding: 0 5px;
        min-height: 30px;
    }
    
    .clan_user_nick {
        max-width: 45px !important;
        font-size: 10px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    
    .сlan_members_item_left .clan_user_nick {
        max-width: 45px !important;
        font-size: 10px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    
    .clan_user_avatar {
        height: 14px !important;
        width: 14px !important;
    }
    
    .сlan_members_item_left .clan_user_avatar {
        height: 14px !important;
        width: 14px !important;
    }
    
    .clan_user_role {
        font-size: 9px !important;
    }
    
    .сlan_members_item_left {
        gap: 5px;
    }
}
.сlan_members_item_left {
    display: flex;
    gap: 8px;
    align-items: center;
}
.clan_user_avatar {
    border-radius: 6px;
    height: 20px;
    width: 20px;
}
.сlan_members_item_left .clan_user_avatar {
    border-radius: 6px;
    height: 20px;
    width: 20px;
}
.clan_user_nick {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    color: var(--text-default);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    opacity: .8;
    transition: .2s ease-in-out;
}
.clan_user_nick:hover {
    color: var(--span);
}
.сlan_members_item_left .clan_user_nick {
    color: var(--text-default);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    opacity: .8;
    transition: .2s ease-in-out;
}
.сlan_members_item_left .clan_user_nick:hover {
    color: var(--span);
}
.сlan_members_item_right {
    display: flex;
    gap: 5px;
    align-items: center;
}
.clan_user_role {
    color: var(--text-custom);
    font-size: 12px;
}
.clan_member_tooltip {
    position: fixed;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    max-width: 300px;
    pointer-events: none;
    /* Убираем transform, т.к. позиция теперь вычисляется в JS */
}

.clan_user_list_info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--text-default);
    font-size: 13px;
}

.clan_user_list_info span {
    white-space: nowrap;
}
.clan_svg_del {
    cursor: pointer;
    padding: 0;
    background: transparent;
}
.clan_svg_del svg {
    width: 15px;
    height: 15px;
    fill: var(--text-custom);
    transition: .2s;
}
.clan_svg_del:hover svg {
    fill: var(--span);
}
.clan_user_list_info {
    display: flex;
    gap: 2px;
    flex-direction: column;
}
.clan_user_list_info span {
    color: var(--text-default);
    font-size: 11px;
}
.clan-back-join {
	display: flex;
    gap: 10px;
    padding: 0 15px;
    height: 35px;
    background: var(--button);
    border-radius: 12px;
    font-weight: 500;
    justify-content: center;
    font-size: 12px;
    line-height: normal;
    color: var(--text-custom);
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    margin-left: auto;
}
.clan-back-join:hover {
    color: #fff;
	background-color: #843db4
}

.clan_panel {
	display: flex;
    gap: 10px;
    padding: 0 15px;
    height: 35px;
    background: var(--button);
    border-radius: 12px;
    font-weight: 500;
    justify-content: center;
    font-size: 12px;
    line-height: normal;
    color: var(--text-custom);
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    margin-left: auto;
}
.clan_join {
	display: flex;
    gap: 10px;
    padding: 0 15px;
    height: 35px;
	box-shadow: 0 0 5px 4px rgb(129 59 222);
    background: var(--button);
    border-radius: 12px;
    font-weight: 500;
    justify-content: center;
    font-size: 12px;
    line-height: normal;
    color: var(--text-custom);
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    margin-left: auto;
}
.clan_panel:hover {
    color: #fff;
	background-color: #843db4
}

.clan_exit {
	display: flex;
    gap: 10px;
    padding: 0 15px;
    height: 35px;
    background: var(--button);
    border-radius: 12px;
    font-weight: 500;
    justify-content: center;
	box-shadow: 0 0 5px 4px rgb(255 0 0);
    font-size: 12px;
    line-height: normal;
    color: var(--text-custom);
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    margin-left: auto;
}

.clan_exit:hover {
    color: #fff;
	background-color: red
}