.btn-back {
    cursor: pointer;
    padding: 10px;
    background: var(--sidebar-color);
    color: var(--default-text-color);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: .3s;
}

.btn-back:hover {
    transition: .3s;
    background: var(--default-text-color-invert);
}

.header-btns {
    border-bottom: 1px solid var(--table-line);
    display: flex;
}

.header-btn {
    background: #1f1f1f94;
    padding: 10px 20px;
    border-right: 2px solid var(--table-line);
    border-top-left-radius: 15px;
    cursor: pointer;
    transition: .3s;
    color: var(--default-text-color);
    font-weight: bold;
}

.header-btn:last-child {
    border-top-left-radius: 0px;
    border-top-right-radius: 15px;
    border: none;
}

.header-btn-active {
    background: var(--span-color);
    transition: .3s;
}

.select-panel.select-panel-table.badge {
    position: absolute;
    right: 85px;
    background: #111; /* тёмный фон */
    border: 1px solid #333;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.select-panel.select-panel-table.badge:hover {
    border-color: #555;
    box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

.select-panel.select-panel-table.badge select {
    background-color: #000;
    color: #f0f0f0;
    font-size: 1.1em;
    font-weight: 500;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 10px;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* стрелочка кастомная */
.select-panel.select-panel-table.badge select {
    background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), 
                      linear-gradient(135deg, #aaa 50%, transparent 50%);
    background-position: calc(100% - 15px) center, calc(100% - 10px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.select-panel.select-panel-table.badge select:hover {
    border-color: #666;
    background-color: #111;
}

.select-panel.select-panel-table.badge select:focus {
    border-color: #888;
    box-shadow: 0 0 6px #666;
}

.select-panel.select-panel-table.badge option {
    background-color: #111;
    color: #eee;
    font-size: 1em;
}


.clan-block {
    display: flex;
}

.clan-info {
    height: 204px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
}

.clan-info-left {
    height: 100%;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clan-info-left .clan-avatar-block {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.clan-button {
    margin-left: 20px;
    margin-top: 20px;
    display: none;
}

.clan-info-right {
    height: 100%;
    width: 35%;
}

.clan-stats {
    height: 180px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.stat-block {
    height: 70px;
    width: 70px;
    border-radius: 5px;
    background: #4F4F4F;
    margin: 8px;
    display: flex;
    position: relative;
}

.zmdi-mood {
    font-size: 50px !important;
    transform: rotateZ(-15deg);
    position: absolute;
    right: 6px;
    top: 6px;
    opacity: 0.2;
}

.zmdi-account-circle {
    font-size: 50px !important;
    transform: rotateZ(-15deg);
    position: absolute;
    right: 6px;
    top: 6px;
    opacity: 0.2;
}

.zmdi-money-box {
    font-size: 50px !important;
    transform: rotateZ(-15deg);
    position: absolute;
    right: 8px;
    top: 6px;
    opacity: 0.2;
}

.stat-text {
    align-self: center;
    margin-left: 5px;
}

.stat-name {
    position: absolute;
    bottom: 3px;
    left: 5px;
    font-size: 10px;
    color: azure;
}

.clan-players {
    height: 400px;
    margin: 0 auto;
    overflow-y: scroll;
}

.yes {
    border-radius: 5px;
    height: 25px;
    background: var(--bg-color);
    color: white;
}

.server-block {
    background: var(--bg-color);
    height: 30px;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.server-block:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .clan-info {
        flex-direction: column;
    }

    .clan-info-left {
        width: 100%;
        padding-bottom: 20px;
        padding-top: 20px;
    }

    .clan-avatar-block {
        justify-content: center;
        margin-left: 0 !important;
    }

    .clan-button {
        margin-left: 0 !important;
        margin-top: 20px;
        align-self: center;
    }

    .clan-info-right {
        width: 100%;
        height: 0;
    }

    .clan-stats {
        height: auto;
        justify-content: center;
    }

    .clan-players {
        overflow-x: scroll;
    }
}

.pagination {
    display: inline-block;
}

.pagination a {
    color: white;
    float: left;
    padding: 5px 12px;
    text-decoration: none;
    transition: background-color .3s;
    border: 2px solid #33325a;
    border-radius: 5px;
    margin: 0 2px;
}

.pagination a.active,  .pagination .active a {
    background-color: #6169fc;
    color: white;
    border: 1px solid #6169fc;
}

.pagination a:hover:not(.active) {
    background-color: #33325a;
}
/*-----------button--------------------*/
.clans-button {
    width: 100%;
    display: inline-block;
    margin: 0 0 8px 0;
    padding: 14px 0;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #e0e0e0;
    background: linear-gradient(145deg, #0d0d0d, #1a1a1a);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), inset 0 -3px 6px rgba(0, 0, 0, 0.8);
    position: relative;
}

.clans-button:hover, .filter-active {
    color: #fff;
    border: 1px solid #000000;
    box-shadow: 0 0 12px rgb(0 0 0 / 40%), inset 0 -2px 10px rgb(0 0 0 / 30%);
    background: linear-gradient(145deg, #161616, #222);
    transform: translateY(-1px);
}

.clans-button:active {
    transform: translateY(2px);
    box-shadow: inset 0 -2px 10px rgb(0 0 0 / 30%);
    border: 1px solid #000000;
}


/*-----------clan-baner------------*/
/* --- КОНТЕЙНЕРЫ --- */
div.clan-baner-container {
    z-index: 1;
}

div.clan-grid-container {
    position: relative;
    margin: 10px;
    float: left;
    width: 310px;
    height: 130px;
    background: linear-gradient(145deg, #0d0d0d, #1a1a1a);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

div.clan-grid-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 12px rgb(0 0 0 / 40%);
}

/* --- БАННЕР --- */
div.clan-baner {
    z-index: 2;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

div.clan-baner:hover {
    border: 0 0 12px rgb(0 0 0 / 40%);
    box-shadow: 0 0 12px rgb(0 0 0 / 40%);
}

/* --- ИЗОБРАЖЕНИЕ --- */
div.clan-baner img {
    width: 310px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.4s ease;
}

div.clan-baner:hover img {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.03);
}

/* --- СВЕЧЕНИЕ МОЕГО КЛАНА --- */
img.my-clan-backlight {
    box-shadow: 0 0 12px 5px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}


/* --- НАЗВАНИЕ КЛАНА НА БАННЕРЕ --- */
div.clan-baner-title {
    margin: 0;
    padding: 10px;
    position: absolute;
    top: 0;
    width: 310px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

div.clan-baner-title > span {
    color: #ffffff;
    margin-left: 10px;
    text-shadow: 0 0 10px rgb(0 0 0 / 60%);
}

/* --- АВАТАРЫ / ИКОНКИ В ОКРУГЛОЙ ФОРМЕ --- */
.rounded-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgb(0 0 0 / 50%);
    box-shadow: 0 0 8px rgb(183 183 183 / 40%);
    transition: all 0.3s ease;
}

.rounded-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(97, 105, 252, 0.7);
}


/*----------Clan info----------------------------*/
#clansBanerImg {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 15em;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #111; /* запасной фон */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

#clanUploadBaner {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    background-color: #ddd;
}

#clansBanerNav {
    width: 100%;
    margin: 0 10px 10px 0px;
}

#clansBanerName, #clansBanerButtons{
    vertical-align:bottom;
}

#clansBanerName{
    margin-left: 10px;
    font-weight: 700;
    font-size: 1.1em;
    float:left;
}

#clansBanerButtons{
    float:right;
}

#clansBanerButtons .join.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#clansBanerButtons > button {
    border: none;
    color: #f0f0f0;
    padding: 10px;
    width: 110px;
    font-weight: 500;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0.8;
    border-radius: 8px;
    margin-left: 8px;
    background: linear-gradient(145deg, #1c1c1c, #2b2b2b);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

#clansBanerButtons > button:hover {
    opacity: 1;
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

img#editBaner {
    vertical-align: middle;
    border-style: none;
    position: absolute;
    width: 30px;
    top: 10px;
    right: 10px;
    opacity: 0.7;
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    filter: invert(1);
}

img#editBaner:hover {
    width: 32px;
    opacity: 1;
    background-color: rgba(96, 165, 250, 0.15); /* мягкий синий фон */
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.6);
    transform: scale(1.1);
}



#clansBanerButtons>button.upload {
    background-color: #467ebb;
}
#clansBanerButtons>button.cancel {
    background-color: #fa5d00;
}

button.join, button.leave {
    background-color: #6262ff;
}

/**--------------icons-----------------------------*/

@font-face {
    font-family: 'icomoon';
    src:  url('fonts/icomoon.eot?w2con7');
    src:  url('fonts/icomoon.eot?w2con7#iefix') format('embedded-opentype'),
        url('fonts/icomoon.ttf?w2con7') format('truetype'),
        url('fonts/icomoon.woff?w2con7') format('woff'),
        url('fonts/icomoon.svg?w2con7#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="icons-"], [class*=" icons-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icons-calendar:before {
    content: "\e953";
}
.icons-kills:before {
    content: "\e900";
}
.icons-coins:before {
    content: "\f111";
}
.icons-deaths2:before {
    content: "\f135";
}
.icons-players:before {
    content: "\f20d";
}
.icons-deaths:before {
    content: "\f235";
}

i.icons-deaths2 {
    font-size: 2.4em;
    color: red;
    opacity: 0.5;
    cursor: pointer;
}

i.icons-deaths2:hover {

    opacity: 1;
}

div.clan-wrapper {
    display: grid;
    gap: 5px;
    grid-template-columns: auto auto auto;
    border: 0px solid transparent;
    border-radius: 4px;
}


/* --- ЧЕРНЫЙ СТИЛЬ ДЛЯ СТАТИСТИКИ --- */
div.statistic-bloc {
    background: linear-gradient(145deg, #111, #1c1c1c);
    padding: 15px 20px;
    position: relative;
    height: 90px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.4s ease;
}

div.statistic-bloc:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

/* --- Цифра (основной счётчик) --- */
div.statistic-cout {
    font-size: 2.4em;
    position: absolute;
    top: 5px;
    left: 15px;
    color: #f7faff; /* приятный синий акцент */
    font-weight: 700;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

/* --- Иконка справа --- */
div.statistic-icon {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 2.3em;
    color: #888a8c; /* серый с мягким контрастом */
    transition: all 0.3s ease;
}
div.statistic-bloc:hover .statistic-icon {
    color: #5b5b5b;
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

/* --- Мелкий текст под цифрой --- */
div.statistic-text-smail {
    position: absolute;
    top: 48px;
    left: 15px;
    font-size: 0.95em;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

/* --- Нижняя подпись --- */
div.statistic-text {
    position: absolute;
    bottom: 5px;
    left: 15px;
    color: #6b7280;
    font-size: 0.9em;
    letter-spacing: 0.3px;
}
