img.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.05);
}

img.lazy-image.loaded {
    opacity: 1;
}

@media (max-width: 578.9px) {
    .all_nav {
        display: flex;
        gap: 0.3rem;
        flex-direction: row;
        flex-wrap: wrap;
        background-color: var(--card);
        padding: 0.3rem;
        border-radius: var(--br-12);
    }
}

@media (min-width: 579px) {
    .all_nav {
        display: flex;
        gap: 0.3rem;
        flex-direction: row;
        flex-wrap: wrap;
        background-color: var(--card);
        padding: 0.3rem;
        border-radius: var(--br-12);
    }
}

.clans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px;
    border-radius: 12px;
    margin-block: 0.6rem;
    outline: 2px dashed var(--button-hover);
}

.clans-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-default);
    margin: 0 0 8px 0;
}

.clans-header p {
    font-size: 14px;
    color: var(--text-custom);
    margin: 0;
}

.clan-link {
    color: var(--span);
    text-decoration: none;
    font-weight: 500;
}

.clans-page-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.clans-blocks {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(4, 1fr);
}

.clan-card {
    border-radius: 12px;
    color: var(--text-default);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 170px;
}

.clan-card-banner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.clan-card-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 0;
    pointer-events: none;
}

.clan-card-banner::after {
    display: none;
}

.clan-card-header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.clan-card-status {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
}

.clan-card-rank {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-custom);
    background: var(--transparent-5-w);
    padding: 4px 5px;
    border-radius: 5px;
    text-align: center;
}

.clan-card-info-top {
    display: none;
}

.clan-card-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    position: relative;
    z-index: 2;
    text-align: left;
    min-height: 0;
}

.clan-card-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
}

.clan-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.clan-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    padding: 0;
    background: transparent;
    position: relative;
    z-index: 2;
    flex: 1;
    align-items: flex-start
}

.clan-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.clan-card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
}

.clan-card-description {
    display: none;
}

.clan-card-expires {
    display: none;
}

.clan-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    gap: 6px;
}

.clan-card-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.clan-card-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #ffd75a;
    padding: 3px 7px;
}

.clan-card-stat svg {
    width: 12px;
    height: 12px;
    opacity: 1;
    fill: currentColor;
    flex-shrink: 0;
}

.clan-card-members {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
}

.clan-card-members svg {
    width: 12px;
    height: 12px;
    opacity: 1;
    flex-shrink: 0;
}

.clan-card-type {
    display: none;
}

.clan-card-banner--no-bg {
    background-color: var(--card);
    background-image: none;
}

.clan-info-block {
    overflow: visible;
    border-radius: 16px;
    padding: 20px;
}

.clan-table-card {
    display: grid;
    padding: 15px;
    background: var(--card);
    border: 0.5px solid rgb(255, 255, 255 / 10%);
    border-radius: 12px;
    overflow-x: auto;
    z-index: 1;
}

.clan-info-stats {
    position: absolute;
    z-index: 100;
    top: 170px;
    width: 100%;
    display: flex;
    align-items: end;
    gap: 15px;
}

.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;
}

.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 var(--transparent-20-b);
    border: solid 2px var(--navbar-color);
}

.clan-tops {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-custom);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clans_global_settings_form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.clan-card-info {
    display: grid;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--card) 0%, var(--bg-modal) 100%);
    border: 0.5px solid var(--transparent-10-w);
    border-radius: 16px;
    transition: all 0.3s ease;
    align-content: center;
}

.clan-card-info:hover {
    border-color: var(--transparent-20-w);
    box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
}

.clan-info-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--transparent-10-w);
}

.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: 45px;
    width: 100%;
    box-sizing: border-box;
    color: var(--span);
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.clan-create:hover {
    color: var(--text-default);
    background: linear-gradient(135deg, var(--span-middle) 0%, var(--span-low) 100%);
}

.clan-info-desc {
    font-size: 14px;
    color: var(--text-custom);
    margin-bottom: 15px;
    line-height: 1.6;
    padding: 12px;
    background: var(--input-form);
    border-radius: 10px;
    border-left: 3px solid var(--span);
}

.clan-info-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-custom);
    padding: 10px 0;
    border-top: 1px solid var(--transparent-10-w);
    transition: all 0.2s ease;
}

.clan-info-text:hover {
    color: var(--text-default);
    padding-left: 5px;
}

.clan-info-text>div {
    font-weight: 600;
    color: var(--text-default);
}

.clan_back {
    display: block;
    width: 100%;
    height: 15em;
    border-radius: 16px;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
}

.clan_back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--transparent-10-b) 0%, var(--transparent-20-b) 100%);
    z-index: 2;
}

.clan-block {
    position: absolute;
    left: 6%;
    bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: end;
    z-index: 10;
    background: linear-gradient(135deg, var(--transparent-10-b) 0%, var(--transparent-20-b) 100%);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--transparent-10-w);
}

.clan-header-info img {
    height: 80px;
    width: 80px;
    border-radius: 12px;
    outline: 4px solid var(--card);
}

.clan-nickname {
    display: flex;
    font-size: 24px;
    font-weight: 700;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: max-content;
    color: var(--text-default);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px #000000, 0 4px 15px rgba(0, 0, 0, 0.6);
}

.clan-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.clan-status-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-shadow: 0 2px 8px #000000, 0 1px 4px #000000;
}

.clan-data-pagination {
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#clan-data-pagination {
    display: flex;
    gap: 8px;
}

#clan-data-pagination>button:disabled {
    background: linear-gradient(135deg, var(--span) 0%, var(--span-middle) 100%);
    font-weight: 600;
    color: var(--text-default);
    cursor: default;
    -webkit-user-drag: none;
    user-select: none;
    border: 1px solid var(--span);
    box-shadow: 0 2px 8px #000000;
}

#clan-data-pagination>button:hover:disabled {
    background: linear-gradient(135deg, var(--span) 0%, var(--span-middle) 100%);
    font-weight: 600;
    color: var(--text-default);
    cursor: default;
    -webkit-user-drag: none;
    user-select: none;
    transform: none;
}

#clan-data-pagination>button {
    display: flex;
    height: 40px;
    width: 40px;
    min-width: 40px;
    padding: 0;
    background: var(--transparent-5-w);
    border: 1px solid var(--transparent-10-w);
    border-radius: 8px;
    font-weight: 500;
    transition: none !important;
    color: var(--text-default);
    font-size: 14px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#clan-data-pagination>button:hover {
    background: var(--transparent-5-w) !important;
    border-color: var(--transparent-10-w) !important;
    color: var(--text-default) !important;
    transform: none !important;
    box-shadow: none !important;
}

.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 18px;
    height: 38px;
    background: linear-gradient(135deg, var(--button) 0%, var(--span-low) 100%);
    border: 1px solid var(--span-low);
    border-radius: 10px;
    font-weight: 600;
    justify-content: center;
    font-size: 13px;
    line-height: normal;
    color: var(--span);
    align-items: center;
    cursor: pointer;
    transition: none !important;
}

.clan-settings-button:hover {
    color: var(--span) !important;
    background: linear-gradient(135deg, var(--button) 0%, var(--span-low) 100%) !important;
    transform: none !important;
    box-shadow: none !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-create-info {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-custom);
}

.clan_members_list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.clan-settings-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clan-settings-form-group {
    margin-bottom: 20px;
}

.clan-settings-form-group:last-child {
    margin-bottom: 0;
}

.clan-label-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.clan-label-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--span);
    opacity: 0.8;
}

.clan-settings-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.clan-settings-media-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.media-preview {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--input-form);
    border: 2px solid var(--transparent-10-w);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.media-preview:hover {
    border-color: var(--span-low);
    box-shadow: 0 4px 16px rgb(0, 0, 0 / 20%);
}

.media-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.banner-preview {
    height: 120px;
}

.banner-preview div {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.clan-settings-media-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--transparent-10-w);
}

.clan-action-clear {
    background: var(--input-form);
    color: var(--text-custom);
    border: 1px solid rgb(255, 255, 255 / 10%);
}

.clan-action-clear:hover {
    background: var(--input-form) !important;
    color: var(--text-custom) !important;
    border-color: rgb(255, 255, 255 / 10%) !important;
    transform: none !important;
    box-shadow: none !important;
}

.clan-action-save {
    background: linear-gradient(135deg, var(--span-low) 0%, var(--button) 100%);
    color: var(--span);
    border: 1px solid var(--span-low);
}

.clan-action-save:hover {
    background: linear-gradient(135deg, var(--span-low) 0%, var(--button) 100%) !important;
    color: var(--span) !important;
    transform: none !important;
    box-shadow: none !important;
}

.clan-settings-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.clan-privacy-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: linear-gradient(135deg, var(--input-form) 0%, var(--bg-modal) 100%);
    border: 2px solid var(--transparent-10-w);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.clan-privacy-toggle:hover {
    border-color: var(--span-low);
    box-shadow: 0 4px 20px rgb(0, 0, 0 / 20%);
}

.clan-privacy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--span-low);
    border-radius: 8px;
    padding: 6px;
}

.clan-privacy-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--span);
}

.clan-privacy-btn {
    font-size: 16px;
    padding: 12px 24px;
}

.clan-payment-item-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-default);
    margin: 0 0 24px 0;
    text-align: center;
}

.clan-payment-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clan-payment-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 2px solid var(--transparent-10-w);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}

.clan-payment-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--span-low));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clan-payment-option:hover:not(.disabled)::before {
    opacity: 1;
}

.clan-payment-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.clan-payment-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--span-low);
    border-radius: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.clan-payment-option-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--span);
}

.clan-payment-option-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.clan-payment-option-info h4 {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-default);
}

.clan-payment-option-price {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--span);
}

.clan-payment-option-balance {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.8;
}

.clan-preview-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.clan-preview-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 200px;
}

.clan-preview-card .clan-card-banner {
    min-height: 200px;
    height: 100%;
    padding: 12px;
}

.clan-preview-card .clan-card-header {
    margin-bottom: 12px;
}

.clan-preview-card .clan-card-center {
    gap: 12px;
    margin-bottom: 12px;
}

.clan-preview-card .clan-card-avatar {
    width: 64px;
    height: 64px;
}

.clan-preview-card .clan-card-name {
    font-size: 16px;
    font-weight: 700;
}

.clan-preview-card .clan-card-tag {
    font-size: 12px;
}

.clan-preview-card .clan-card-stat {
    font-size: 14px;
    padding: 4px 8px;
}

.clan-preview-card .clan-card-members {
    font-size: 12px;
    padding: 4px 8px;
}

.clan-preview-card .clan-card-rank {
    font-size: 15px;
    padding: 5px 6px;
}

.clan-preview-card .clan-card-status {
    font-size: 8px;
    padding: 3px 6px;
}

.clan-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: none !important;
    border: 1px solid transparent;
}

.clan-modal-btn-fullwidth {
    width: 100%;
}

.clan-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.clan-back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.clan-back-button:hover {
    transform: translateX(-4px);
    opacity: 0.8;
}

.clan-back-button svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.clan-header-banner {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: var(--br-12);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.clan-header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.clan-header-left {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.clan-header-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.clan-header-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
}

.clan-header-name {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.clan-header-right {
    padding-bottom: 15px;
}

.clan-expires-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
}

.clan-expires-badge svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.clan-card-header .clan-expires-badge {
    position: relative;
    bottom: auto;
    right: auto;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    padding: 3px 6px;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
    gap: 3px;
    margin-right: auto;
}

.clan-card-header .clan-expires-badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.clan-tabs {
    display: flex;
    gap: 0.3rem;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: var(--card);
    padding: 0.3rem;
    border-radius: var(--br-12);
    margin-bottom: -5px;
}

.clan-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--transparent-5-w);
    border-radius: var(--br-8);
    color: var(--text-custom);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-7);
    cursor: pointer;
    transition: var(--transition-duration);
    border: 1px solid transparent;
}

.clan-tab svg {
    fill: var(--text-custom);
    transition: all 0.3s ease;
}

.clan-tab:hover {
    background-color: var(--button-hover);
    color: var(--text-default);
}

.clan-tab:hover svg {
    fill: var(--text-default);
}

.clan-tab.active {
    background-color: var(--span);
    color: var(--text-default);
}

.clan-tab.active svg {
    fill: var(--text-default);
}

.clan-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clan-info-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clan-info-card {
    background: var(--card);
    border-radius: 16px;
    padding: 24px;
}

.clan-info-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-default);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.clan-info-card-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-custom);
    margin: 0;
    line-height: 1.6;
}

.clan-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.clan-stat-card {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.clan-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--span-low);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clan-stat-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--span);
}

.clan-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clan-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-custom);
    margin: 0;
}

.clan-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-default);
    margin: 0;
}

.clan-form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
}

.clan-form-feedback {
    margin-top: 6px;
    font-size: 12px;
    display: block;
}

.clan-transfer-warning {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
}

.clan-transfer-warning svg {
    flex-shrink: 0;
    fill: #dc3545;
    margin-top: 2px;
}

.clan-transfer-warning p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.clan-kick-warning {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
}

.clan-kick-warning svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: #dc3545;
}

.clan-kick-warning p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.clan-transfer-modal {
    max-width: 500px;
    width: 100%;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--transparent-10-w);
    padding: 0;
    overflow: hidden;
}

.clan-form-feedback {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    min-height: 14px;
}

.clan-form-feedback.error {
    color: #ff6b6b;
}

.clan-form-feedback.success {
    color: var(--green);
}

.clan-members-player-link:hover {
    color: var(--span);
}

.clan-members-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #2a2a2a;
}

.clan-members-name {
    font-weight: 500;
}

.clan-member-owner {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0) 100%) !important;
    border-left: 3px solid #ffc107;
}

.clan-member-owner:hover {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.02) 100%) !important;
}

.clan-member-owner .clan-members-name {
    color: #ffc107;
    font-weight: 600;
}

.clan-members-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 12px;
}

.clan-members-layout-full {
    grid-template-columns: 1fr;
}

.clan-members-section-full {
    width: 100%;
    max-width: 100%;
}

.clan-settings-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clan-settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.clan-settings-action-btn svg {
    fill: currentColor;
}

.clan-settings-transfer-btn {
    background: var(--card);
    color: #ff9500;
    border: 1px solid #ff9500;
}

.clan-settings-close-btn {
    background: var(--card);
    color: #ff3b30;
    border: 1px solid #ff3b30;
}

.clan-settings-save-btn {
    background: var(--span);
    color: var(--text-default);
}

.clan-settings-save-btn:hover {
    background: var(--span) !important;
    opacity: 1 !important;
    transform: none !important;
}

.clan-settings-section {
    background: var(--card);
    border-radius: 12px;
    padding: 24px;
}

.clan-settings-section fieldset>.inputs-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.clan-settings-section fieldset:has(> .inputs-inline) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.clan-settings-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-default);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--button-hover);
    display: flex;
    align-items: center;
    gap: 8px;
}

.clan-settings-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 16px;
}

.clan-settings-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.clan-settings-field:last-child {
    margin-bottom: 0;
}

.clan-settings-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-default);
    opacity: 0.9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clan-settings-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.clan-settings-image-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clan-settings-image-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.clan-settings-image-preview {
    width: 100%;
    height: 150px;
    background: var(--transparent-5-w);
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clan-settings-avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.clan-settings-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.clan-settings-info-box {
    margin-top: 20px;
    padding: 16px;
    background: var(--transparent-2-w);
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.clan-settings-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.clan-settings-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clan-settings-info-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

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

    .clan-settings-info-icon {
        margin-top: 0;
    }
}

.clan-form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.clan-warning-text {
    color: #ff6b6b;
    font-weight: 500;
    margin-top: 10px;
}

.clan-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: none !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.clan-btn-primary {
    background: linear-gradient(135deg, var(--span) 0%, var(--span-middle) 100%);
    color: var(--text-default);
}

.clan-btn-primary:hover {
    transform: none !important;
    box-shadow: none !important;
}

.clan-btn-secondary {
    background: var(--transparent-5-w);
    color: var(--text-default);
    border: 1px solid var(--transparent-10-w);
}

.clan-btn-secondary:hover {
    background: var(--transparent-5-w) !important;
    border-color: var(--transparent-10-w) !important;
    transform: none !important;
    box-shadow: none !important;
}

.clan-btn-danger {
    background: linear-gradient(135deg, var(--red) 0%, var(--red) 100%);
    color: var(--text-default);
}

.clan-btn-danger:hover {
    transform: none !important;
    box-shadow: none !important;
}

.clan-roles-section {
    margin-top: 30px;
}

.clan-roles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.clan-role-create-btn {
    background: var(--span);
    color: var(--text-default);
}

.clan-role-create-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.clan-roles-list {
    display: grid;
    gap: 12px;
}

.clan-role-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--transparent-5-w);
    border-radius: 10px;
}

.clan-role-item:hover {
    background: var(--transparent-5-w);
    border-color: var(--transparent-10-w);
}

.clan-role-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clan-role-name {
    color: var(--text-default);
    font-size: 16px;
    font-weight: 500;
}

.clan-role-count {
    color: var(--text-secondary);
    font-size: 12px;
}

.clan-role-actions {
    display: flex;
    gap: 8px;
}

.clan-role-select {
    width: auto;
    min-width: 160px;
    padding: 10px 36px 10px 14px;
    background: var(--transparent-10-w);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-default);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clan-role-select:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: var(--span);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
    transform: translateY(-1px);
}

.clan-role-select:focus {
    outline: none;
    border-color: var(--span);
    background: rgba(74, 144, 226, 0.1);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15), 0 4px 12px rgba(74, 144, 226, 0.25);
    transform: translateY(-1px);
}

.clan-role-select:active {
    transform: none !important;
    box-shadow: none !important;
}

.clan-role-select option {
    background: var(--transparent-5-w);
    color: var(--text-default);
    padding: 12px 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--card);
}

.clan-role-select option:hover {
    background: rgba(74, 144, 226, 0.2);
}

.clan-role-select option:checked {
    background: rgba(74, 144, 226, 0.1);
    color: var(--span);
    font-weight: 600;
}

@keyframes selectPulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 2px 12px rgba(74, 144, 226, 0.3);
    }
}

.clan-role-select.loading {
    animation: selectPulse 1.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
}

.clan-content-modern {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-top: 20px;
}

.clan-content-modern:not(:has(.clan-roles-sidebar)) {
    grid-template-columns: 1fr;
}

.clan-section-modern {
    background: var(--card);
    border: 1px solid var(--transparent-10-w);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.clan-section-modern:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.clan-section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card);
}

.clan-section-title-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-default);
    margin: 0;
}

.clan-section-title-modern svg {
    fill: var(--span);
    opacity: 0.8;
}

.clan-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: linear-gradient(135deg, var(--span) 0%, var(--span-middle) 100%);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-default);
}

.clan-members-search-wrapper {
    margin-bottom: 20px;
}

.clan-search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.clan-search-icon {
    position: absolute;
    left: 14px;
    pointer-events: none;
    fill: var(--text-default);
    opacity: 0.5;
}

.clan-search-input {
    width: 100%;
    padding: 12px 40px 12px 42px;
    background: var(--transparent-5-w);
    border: 1px solid var(--card);
    border-radius: 10px;
    color: var(--text-default);
    font-size: 14px;
    transition: all 0.3s ease;
}

.clan-search-input:focus {
    outline: none;
    border-color: var(--span);
    background: var(--transparent-5-w);
}

.clan-search-input::placeholder {
    color: var(--text-default);
    opacity: 0.5;
}

.clan-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-default);
    opacity: 0.5;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clan-search-clear:hover {
    opacity: 1;
}

.clan-members-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-default);
    opacity: 0.5;
}

.clan-members-no-results svg {
    margin-bottom: 12px;
}

.clan-members-no-results p {
    margin: 0;
    font-size: 15px;
}

.clan-member-card.hidden {
    display: none;
}

.clan-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.clan-members-list {
    display: block;
    max-height: min(600px, 70vh);
    overflow-y: auto;
    padding: 8px 6px;
}

.clan-members-table {
    display: grid;
    grid-template-columns: 50px 1fr 150px 80px 80px 80px 1fr 50px;
    gap: 12px;
    align-items: center;
    background: var(--card);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-custom);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clan-members-header-cell {
    text-align: center;
    white-space: nowrap;
}

.clan-members-header-rank {
    grid-column: 1;
    text-align: center;
}

.clan-members-header-name {
    grid-column: 2;
    text-align: left;
}

.clan-members-header-role {
    grid-column: 3;
    text-align: center;
}

.clan-members-header-stat {
    text-align: center;
    white-space: nowrap;
}

.clan-members-header-stats {
    grid-column: 4 / 7;
}

.clan-members-header-activity {
    grid-column: 7;
}

@media (max-height: 700px) {
    .clan-members-list {
        max-height: min(62vh, 520px);
    }
}

.clan-members-list .clan-member-row+.clan-member-row {
    margin-top: 10px;
}

.clan-member-row {
    display: grid;
    grid-template-columns: 50px 1fr 150px 80px 80px 80px 1fr 50px;
    gap: 12px;
    align-items: center;
    background: var(--button);
    border-radius: 10px;
    padding: 12px 16px;
}

.clan-member-row-rank {
    width: 100%;
    font-weight: 600;
    text-align: center;
}

.clan-member-row-role {
    display: flex;
    justify-content: center;
}

.clan-member-row-kills,
.clan-member-row-deaths,
.clan-member-row-kd {
    display: flex;
    justify-content: center;
}

.clan-member-row-activity {
    display: flex;
    justify-content: flex-start;
}

.clan-member-row-actions {
    display: flex;
    justify-content: center;
}

.clan-member-row .clan-member-card-stats {
    display: flex;
    gap: 8px;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.clan-member-row .clan-member-card-stats .clan-member-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-right: 12px;
    border: none;
    font-size: 13px;
    white-space: nowrap;
}

.clan-member-row .clan-member-card-stats .clan-member-stat svg {
    width: 16px;
    height: 16px;
}

.clan-member-stat-full {
    flex: 1;
}

.clan-member-row-name .clan-member-card-name,
.clan-member-row-name .clan-member-name {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.clan-member-row .clan-member-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes pulse-online {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.clan-activity-recent .clan-member-lastplay {
    color: rgba(255, 255, 255, 0.7);
}

.clan-activity-offline .clan-member-lastplay {
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 720px) {
    .clan-members-list {
        --clan-members-max-height: 62vh;
        padding: 6px;
    }

    .clan-member-row {
        display: grid;
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: "rank main" "meta meta";
        gap: 8px 12px;
        align-items: center;
        padding: 12px;
    }

    .clan-member-row-rank {
        grid-area: rank;
        width: 56px;
        min-width: 56px;
        text-align: left
    }

    .clan-member-row-main {
        grid-area: main;
        display: flex;
        gap: 12px;
        align-items: center
    }

    .clan-member-row-meta {
        grid-area: meta;
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .clan-member-card-avatar,
    .clan-member-avatar-placeholder {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 8px
    }

    .clan-member-row-info {
        min-width: 0
    }

    .clan-member-card-name {
        font-size: 15px;
        max-width: calc(100% - 56px);
        white-space: normal
    }

    .clan-role-badge {
        margin-top: 4px;
        font-size: 12px;
        padding: 4px 8px
    }

    .clan-member-card-stats {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        justify-content: flex-start
    }

    .clan-member-card-stats .clan-member-stat {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 10px 12px;
        font-size: 15px;
        border-radius: 10px;
        box-shadow: none;
    }

    .clan-member-card-stats .clan-member-stat svg {
        margin-right: 8px;
        flex-shrink: 0
    }

    .clan-member-card-stats .clan-member-stat-full {
        order: 99;
        width: 100%;
        padding-left: 0;
        color: var(--text-secondary);
        justify-content: flex-start
    }

    .clan-members-is-mobile .clan-member-kick-btn,
    .clan-members-is-mobile .clan-role-create,
    .clan-members-is-mobile .clan-members-search-clear {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .clans-pagination {
        padding: 8px 6px;
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .clan-members-list {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .clan-members-list::-webkit-scrollbar {
        height: 6px;
        width: 6px
    }

    .clan-members-list::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.06);
        border-radius: 6px
    }
}

.clan-member-row .clan-member-kick-btn {
    margin-left: 8px
}

.clan-members-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-secondary);
    gap: 16px;
}

.clan-members-not-found svg {
    opacity: 0.3;
}

.clan-members-not-found p {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.clan-member-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.clan-member-card-header .clan-member-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clan-member-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clan-member-card-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.clan-member-card-name {
    font-size: 16px;
    color: var(--text-default);
    transition: all 0.3s ease;
    text-overflow: ellipsis;
}

.clan-member-card:hover .clan-member-card-name {
    color: var(--span);
}

.clan-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--span);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.05em;
}

.clan-role-select-modern {
    width: 100%;
    padding: 4px 8px;
    background: var(--transparent-5-w);
    border: 1px solid var(--button);
    border-radius: 6px;
    color: var(--text-default);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23ffffff' opacity='0.4' d='M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 10px;
    padding-right: 24px;
}

.clan-role-select-modern:hover {
    border-color: var(--span);
    background-color: rgba(74, 144, 226, 0.05);
}

.clan-role-select-modern:focus {
    outline: none;
    border-color: var(--span);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.clan-role-select-modern.loading {
    opacity: 0.6;
    pointer-events: none;
    animation: selectPulse 1.5s ease-in-out infinite;
}

.clan-role-select-modern option {
    background: var(--transparent-5-w);
    color: var(--text-default);
    padding: 8px;
}

.clan-member-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.clan-member-stat svg {
    width: 16px;
    height: 16px;
    fill: var(--span);
    opacity: 0.9;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.clan-member-stat:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.clan-member-kick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(220, 53, 69, 0.1) !important;
    border-radius: 6px;
    color: #dc3545 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.clan-member-stat span {
    font-weight: 600;
}

.clan-member-stat-label {
    font-size: 11px;
    color: var(--text-custom);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clan-member-stat-value {
    font-size: 14px;
    color: var(--text-default);
    font-weight: 700;
}

.clan-roles-sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
}

.clan-roles-sidebar .clan-roles-list::-webkit-scrollbar {
    width: 6px;
}

.clan-roles-sidebar .clan-roles-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.clan-roles-sidebar .clan-roles-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.clan-roles-sidebar .clan-roles-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.clan-roles-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding-right: 4px;
}

.clan-roles-list-modern::-webkit-scrollbar {
    width: 6px;
}

.clan-roles-list-modern::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.clan-roles-list-modern::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.clan-roles-list-modern::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.clan-roles-list-modern::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.role-permissions-fieldset {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.role-permissions-fieldset legend {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-default);
}

.role-permissions-fieldset>div:not(:first-of-type) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.inputs-inline:has(.clan-permission-checkbox) {
    position: relative;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 18px 16px 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all .28s cubic-bezier(.16, .8, .34, 1);
    cursor: pointer;
}

.inputs-inline .clan-permission-checkbox {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
    width: 22px;
    height: 22px;
}

.clan-inputs-inline-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: .3px;
    line-height: 1.4;
    user-select: none;
}

.inputs-inline:has(.clan-permission-checkbox:checked) {
    background: linear-gradient(135deg, rgba(var(--span-rgb, 74, 144, 226), 0.18) 0%, rgba(var(--span-rgb, 74, 144, 226), 0.08) 100%);
    border-color: var(--span);
    box-shadow: 0 0 0 1px var(--span), 0 6px 20px -8px rgba(0, 0, 0, 0.6);
    transform: translateY(0);
}

.inputs-inline:has(.clan-permission-checkbox:checked) .clan-inputs-inline-label {
    color: rgba(255, 255, 255, 0.95);
}

.clan-permission-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    border-radius: 6px;
    background: var(--transparent-10-w);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    cursor: pointer;
    transition: all .2s ease;
    flex-shrink: 0;
}

.clan-permission-checkbox:focus-visible {
    outline: 2px solid var(--span);
    outline-offset: 2px;
}

.clan-permission-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.clan-permission-checkbox:checked {
    background: var(--span);
    border-color: var(--span);
}

.clan-permission-checkbox:checked:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.clan-modal-footer .clan-btn-secondary {
    background: var(--transparent-5-w);
    border: 1px solid #3a3a3a;
}

.clan-modal-footer .clan-btn-secondary:active {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

.clan-role-create {
    background: var(--span);
    color: var(--text-default);
}

.clan-role-create svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.clan-roles-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-default);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clan-roles-title svg {
    width: 20px;
    height: 20px;
    fill: var(--span);
    opacity: 0.9;
}

.clan-members-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-default);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.clan-members-title svg {
    width: 24px;
    height: 24px;
    fill: var(--span);
    opacity: 0.9;
}

.clan-members-count {
    font-size: 16px;
    color: var(--text-secondary);
}

.clan-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.clan-members-search {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    min-width: 200px;
}

.clan-members-search-clear {
    position: absolute;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.clan-members-search-clear:hover {
    background: rgba(255, 255, 255, 0.15);
}

.clan-members-search-clear svg {
    fill: var(--text-secondary);
    width: 12px;
    height: 12px;
}

.clan-members-section {
    min-width: 0;
    background: var(--card);
    border-radius: 16px;
    padding: 24px;
}

.clan-roles-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

#clans_settings_form {
    display: contents;
}

#clans_settings_form .card-bottom {
    margin-top: 16px;
}

#clans_settings_form .card-bottom button {
    width: 100%;
    padding: 12px 24px;
    background: var(--span);
    border-radius: 8px;
    color: var(--text-default);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: none !important;
    box-shadow: none !important;
}

#clans_settings_form .card-bottom button:hover {
    transform: none !important;
    box-shadow: none !important;
}

#clans_settings_form .card-bottom button:active {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

.clan-content {
    background: var(--card);
    border-radius: 14px;
    padding: 18px;
}

.clan-requests-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    margin-top: 20px;
}

.clan-requests-empty svg {
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--text-custom);
}

.clan-requests-empty p {
    font-size: 16px;
    color: var(--text-custom);
    margin: 0;
}

.clan-requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.clan-request-card {
    border: 1px solid var(--transparent-10-w);
    border-radius: 12px;
    padding: 20px;
}

.clan-request-card.clan-hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.clan-request-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clan-request-avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
}

.clan-request-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clan-request-name {
    font-weight: 600;
}

.clan-request-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-custom);
    font-size: 13px;
}

.clan-request-date svg {
    opacity: 0.5;
}

.clan-request-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.clan-settings-transfer-btn:hover {
    background: var(--card) !important;
    color: #ff9500 !important;
}

.clan-settings-close-btn:hover {
    background: var(--card) !important;
    color: #ff3b30 !important;
    border-color: #ff3b30 !important;
}

.clan-settings-upload-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#DataPagination>button:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-default) !important;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    input[type="checkbox"]:not(.switch):after {
        width: 5px;
        height: 9px;
        border: 2px solid var(--active-inner);
        border-top: 0;
        border-left: 0;
        left: 5px;
        top: 2px;
        transform: rotate(var(--r, 20deg));
    }
}

.clan-history-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clan-history-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-default);
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.clan-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--card) 0%, var(--bg-modal) 100%);
    border: 0.5px solid #2a2a2a;
    border-radius: 16px;
}

.clan-history-empty p {
    font-size: 16px;
    color: var(--text-custom);
    margin: 0;
    opacity: 0.7;
}

.clan-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clan-history-item {
    border: 0.5px solid #2a2a2a;
    border-radius: 12px;
    padding: 16px 20px;
}

.clan-history-item-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.clan-history-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--span-low);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.clan-history-item:hover .clan-history-item-icon {
    background: var(--span);
    transform: scale(1.05);
}

.clan-history-item-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--span);
    transition: all 0.3s ease;
}

.clan-history-item:hover .clan-history-item-icon svg {
    fill: var(--text-default);
}

.clan-history-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.clan-history-item-description {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-default);
    line-height: 1.5;
    word-wrap: break-word;
}

.clan-history-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.clan-history-item-user {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--span);
    padding: 4px 10px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

a.clan-history-item-user:hover {
    background: rgba(74, 144, 226, 0.2);
    filter: brightness(1.1);
}

.clan-history-item-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-custom);
    opacity: 0.7;
}

.clan-history-item-time::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-custom);
    opacity: 0.5;
}

.clan-history-item[data-event-type="clan_created"] .clan-history-item-icon {
    background: rgba(76, 175, 80, 0.15);
}

.clan-history-item[data-event-type="clan_created"] .clan-history-item-icon svg {
    fill: #4caf50;
}

.clan-history-item[data-event-type="member_joined"] .clan-history-item-icon {
    background: rgba(33, 150, 243, 0.15);
}

.clan-history-item[data-event-type="member_joined"] .clan-history-item-icon svg {
    fill: #2196f3;
}

.clan-history-item[data-event-type="member_left"] .clan-history-item-icon {
    background: rgba(158, 158, 158, 0.15);
}

.clan-history-item[data-event-type="member_left"] .clan-history-item-icon svg {
    fill: #9e9e9e;
}

.clan-history-item[data-event-type="member_kicked"] .clan-history-item-icon {
    background: rgba(244, 67, 54, 0.15);
}

.clan-history-item[data-event-type="member_kicked"] .clan-history-item-icon svg {
    fill: #f44336;
}

.clan-history-item[data-event-type="member_added"] .clan-history-item-icon {
    background: rgba(33, 150, 243, 0.15);
}

.clan-history-item[data-event-type="member_added"] .clan-history-item-icon svg {
    fill: #2196f3;
}

.clan-history-item[data-event-type="settings_updated"] .clan-history-item-icon {
    background: rgba(255, 152, 0, 0.15);
}

.clan-history-item[data-event-type="settings_updated"] .clan-history-item-icon svg {
    fill: #ff9800;
}

.clan-history-item[data-event-type="role_created"] .clan-history-item-icon {
    background: rgba(156, 39, 176, 0.15);
}

.clan-history-item[data-event-type="role_created"] .clan-history-item-icon svg {
    fill: #9c27b0;
}

.clan-history-item[data-event-type="role_updated"] .clan-history-item-icon {
    background: rgba(156, 39, 176, 0.15);
}

.clan-history-item[data-event-type="role_updated"] .clan-history-item-icon svg {
    fill: #9c27b0;
}

.clan-history-item[data-event-type="role_deleted"] .clan-history-item-icon {
    background: rgba(244, 67, 54, 0.15);
}

.clan-history-item[data-event-type="role_deleted"] .clan-history-item-icon svg {
    fill: #f44336;
}

.clan-history-item[data-event-type="role_assigned"] .clan-history-item-icon {
    background: rgba(76, 175, 80, 0.15);
}

.clan-history-item[data-event-type="role_assigned"] .clan-history-item-icon svg {
    fill: #4caf50;
}

.clan-history-item[data-event-type="ownership_transferred"] .clan-history-item-icon {
    background: rgba(255, 193, 7, 0.15);
}

.clan-history-item[data-event-type="ownership_transferred"] .clan-history-item-icon svg {
    fill: #ffc107;
}

.clan-history-item[data-event-type="clan_disbanded"] .clan-history-item-icon {
    background: rgba(244, 67, 54, 0.15);
}

.clan-history-item[data-event-type="clan_disbanded"] .clan-history-item-icon svg {
    fill: #f44336;
}

.clan-history-item[data-event-type="request_accepted"] .clan-history-item-icon {
    background: rgba(76, 175, 80, 0.15);
}

.clan-history-item[data-event-type="request_accepted"] .clan-history-item-icon svg {
    fill: #4caf50;
}

.clan-history-item[data-event-type="request_declined"] .clan-history-item-icon {
    background: rgba(244, 67, 54, 0.15);
}

.clan-history-item[data-event-type="request_declined"] .clan-history-item-icon svg {
    fill: #f44336;
}

.clan-shop-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.clan-shop-header {
    background: var(--card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--transparent-10-w);
}

.clan-shop-bank-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.clan-shop-bank-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--span-low) 0%, var(--span) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clan-shop-bank-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--text-default);
}

.clan-shop-bank-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clan-shop-bank-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-custom);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clan-shop-bank-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--span);
    margin: 0;
    line-height: 1;
}

.clan-shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.clan-shop-item {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clan-shop-item-icon {
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--span-low) 0%, var(--button) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clan-shop-item-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--text-default);
}

.clan-shop-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.clan-shop-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.clan-shop-item-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-default);
    margin: 0;
}

.clan-shop-item-description {
    font-size: 14px;
    color: var(--text-custom);
    margin: 0;
    line-height: 1.5;
}

.clan-shop-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clan-shop-item-type {
    padding: 4px 12px;
    background: var(--transparent-10-w);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--span);
}

.clan-shop-item-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.clan-shop-item-price {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 20px;
    font-weight: 700;
    color: var(--span);
}

.clan-shop-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--transparent-10-w);
}

.clan-shop-disabled-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.clan-shop-disabled-content svg {
    width: 64px;
    height: 64px;
    fill: var(--text-custom);
    opacity: 0.5;
}

.clan-shop-disabled-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-default);
    margin: 0;
}

.clan-shop-disabled-content p {
    font-size: 14px;
    color: var(--text-custom);
    margin: 0;
    line-height: 1.6;
}

.clan-shop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    background: var(--card);
    border-radius: 12px;
    grid-column: 1 / -1;
}

.clan-shop-empty svg {
    width: 64px;
    height: 64px;
    fill: var(--text-custom);
    opacity: 0.5;
}

.clan-shop-empty p {
    font-size: 16px;
    color: var(--text-custom);
    margin: 0;
}

.clan-shop-admin-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clan-shop-admin-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--transparent-10-w);
}

.clan-shop-admin-item-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--span-low) 0%, var(--button) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clan-shop-admin-item-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--text-default);
}

.clan-shop-admin-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.clan-shop-admin-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clan-shop-admin-item-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-default);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.clan-shop-admin-item-disabled {
    display: inline-block;
    padding: 2px 8px;
    background: var(--transparent-10-w);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-custom);
    text-transform: uppercase;
}

.clan-shop-admin-item-description {
    font-size: 14px;
    color: var(--text-custom);
    margin: 0;
    line-height: 1.5;
}

.clan-shop-admin-item-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.clan-shop-admin-item-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--transparent-10-w);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--span);
}

.clan-shop-admin-item-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--span);
}

.clan-shop-admin-item-price svg {
    width: 18px;
    height: 18px;
    fill: var(--span);
}

.clan-shop-admin-item-sort {
    font-size: 13px;
    color: var(--text-custom);
}

.clan-shop-admin-item-actions {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-shrink: 0;
}

.clan-shop-admin-item-actions .button {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clan-shop-admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 20px;
    text-align: center;
}

.clan-shop-admin-empty svg {
    width: 64px;
    height: 64px;
    fill: var(--text-custom);
    opacity: 0.5;
}

.clan-shop-admin-empty p {
    font-size: 16px;
    color: var(--text-custom);
    margin: 0;
}

.clan-content-loading {
    opacity: 0.6;
    pointer-events: none;
}

.clan-hidden {
    display: none;
}

.clan-visible {
    display: block;
}

.clan-error-message {
    text-align: center;
    color: var(--text-muted);
    opacity: 0.7;
}

.clans-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.clans-pagination-btn.active::before {
    opacity: 0;
}

.clans-pagination-btn:not(.disabled):hover svg {
    transform: scale(1.1);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
}

.clans-pagination-dots {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    user-select: none;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .clan_card {
        padding: 12px;
    }

    .clans-pagination {
        gap: 4px;
        margin: 30px 0 15px;
    }

    .clans-pagination-dots {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .clan-settings-media-grid {
        grid-template-columns: 1fr;
    }

    .clan-settings-media-actions {
        flex-direction: column;
    }

    .clan-privacy-toggle {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .clan-modal {
        padding: 20px 15px;
    }

    .clan-modal-content {
        max-width: 100%;
        border-radius: 10px;
    }

    .clan-modal-form,
    .clan-modal-body {
        padding: 20px;
        gap: 18px;
        max-height: calc(100vh - 180px);
    }

    .clan-modal-form fieldset .inputs-inline {
        grid-template-columns: 1fr;
    }

    .clan-members-table-wrapper {
        padding: 15px;
    }

    .clan-section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .clan-members-table {
        font-size: 12px;
    }

    .clan-members-table thead th,
    .clan-members-table tbody td {
        padding: 10px 6px;
    }

    .clan-members-avatar {
        width: 30px;
        height: 30px;
    }

    .clan-members-player-link {
        gap: 8px;
    }

    .clan-members-grid {
        grid-template-columns: 1fr;
    }

    .clan-section-modern {
        padding: 16px;
    }

    .clan-section-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .clan-member-card {
        padding: 12px;
    }

    .clan-member-card-avatar {
        width: 48px;
        height: 48px;
    }

    .clan-members-table {
        flex-direction: column;
        align-items: flex-start;
    }

    .clan-members-search {
        width: 100%;
        min-width: unset;
    }

    .clan-requests-grid {
        grid-template-columns: 1fr;
    }

    .clan-history-title {
        font-size: 20px;
    }

    .clan-history-item {
        padding: 14px 16px;
    }

    .clan-history-item-header {
        gap: 12px;
    }

    .clan-history-item-icon {
        width: 36px;
        height: 36px;
    }

    .clan-history-item-icon svg {
        width: 18px;
        height: 18px;
    }

    .clan-history-item-description {
        font-size: 14px;
    }

    .clan-history-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .clan-history-empty {
        padding: 60px 20px;
    }

    .clan-shop-header {
        padding: 20px;
    }

    .clan-shop-bank-info {
        gap: 16px;
    }

    .clan-shop-bank-icon {
        width: 56px;
        height: 56px;
    }

    .clan-shop-bank-icon svg {
        width: 28px;
        height: 28px;
    }

    .clan-shop-bank-amount {
        font-size: 28px;
    }

    .clan-shop-items {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .clan-shop-item {
        padding: 16px;
    }

    .clan-shop-item-icon {
        width: 48px;
        height: 48px;
    }

    .clan-shop-item-icon svg {
        width: 24px;
        height: 24px;
    }

    .clan-shop-item-name {
        font-size: 16px;
    }

    .clan-shop-item-description {
        font-size: 13px;
    }

    .clan-shop-item-price {
        font-size: 18px;
    }

    .clan-shop-disabled {
        min-height: 300px;
    }

    .clan-shop-disabled-content {
        padding: 30px 20px;
    }

    .clan-shop-disabled-content svg {
        width: 48px;
        height: 48px;
    }

    .clan-shop-disabled-content h2 {
        font-size: 20px;
    }

    .clan-shop-empty {
        padding: 40px 20px;
    }

    .clan-shop-empty svg {
        width: 48px;
        height: 48px;
    }

    .clan-shop-admin-item {
        flex-direction: column;
        gap: 16px;
    }

    .clan-shop-admin-item-icon {
        width: 56px;
        height: 56px;
    }

    .clan-shop-admin-item-icon svg {
        width: 28px;
        height: 28px;
    }

    .clan-shop-admin-item-actions {
        width: 100%;
        justify-content: stretch;
    }

    .clan-shop-admin-item-actions .button {
        flex: 1;
        justify-content: center;
    }

    .clan-shop-admin-item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .clans-header {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .clans-header h1 {
        font-size: 28px;
    }

    .clans-blocks {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .clan-header-banner {
        height: 250px;
    }

    .clan-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .clan-header-avatar {
        width: 100px;
        height: 100px;
    }

    .clan-header-name {
        font-size: 26px;
    }

    .clan-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
    }

    .clan-tab {
        padding: 12px 18px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .clan-card-banner {
        padding: 14px;
        min-height: 180px;
    }

    .clan-card-avatar img {
        width: 88px;
        height: 88px;
    }

    .clan-stats-grid {
        grid-template-columns: 1fr;
    }

    .clan-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .clan-modal-btn {
        width: 100%;
    }

    .clan-settings-block {
        padding: 20px;
    }

    .clan-settings-section {
        padding: 20px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .clan-settings-section:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .clan-settings-row {
        grid-template-columns: 1fr;
    }

    .clan-settings-images {
        grid-template-columns: 1fr;
    }

    .clan-settings-actions {
        flex-direction: column-reverse;
    }

    .clan-settings-action-btn {
        width: 100%;
        justify-content: center;
    }

    .clan-members-layout {
        grid-template-columns: 1fr;
    }

    .clan-content-modern {
        grid-template-columns: 1fr;
    }

    .clan-shop-item-actions {
        gap: 10px;
    }

    .clan-shop-item-actions button {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        justify-content: center;
    }

    .clan-shop-item-actions button.active {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .clan-shop-item-actions button.active.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .clan-shop-admin-item {
        padding: 16px;
    }

    .clan-shop-admin-item-actions {
        flex-direction: column;
        gap: 10px;
    }

    .clan-shop-admin-item-actions .button {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 8px;
        flex: none;
    }

    .clan-shop-admin-item-actions .button.active {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .clan-payment-option {
        padding: 20px;
        gap: 16px;
    }

    .clan-payment-option-icon {
        width: 48px;
        height: 48px;
    }

    .role-permissions-fieldset>div:not(:first-of-type) {
        grid-template-columns: 1fr;
    }

    .inputs-inline:has(.clan-permission-checkbox) {
        padding: 16px 14px 12px 14px;
        min-height: 76px;
    }

    .clan-inputs-inline-label {
        font-size: 12px;
    }

    .clan-podium-item {
        width: 100%;
        padding: 16px;
    }

    .clan-podium-avatar img {
        width: 60px;
        height: 60px;
    }

    .clan-podium-1 {
        order: 1;
    }

    .clan-podium-2 {
        order: 2;
    }

    .clan-podium-3 {
        order: 3;
    }
}

@keyframes clan-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1130px) {
    .clan-grid-2 {
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 15px;
    }

    .clan-grid-2 .clan-grid-2-sticky {
        display: grid;
        gap: 15px;
        height: min-content;
        top: 80px;
        position: sticky;
        order: 1;
    }

    .clan-block-grid-2 {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 15px;
    }

    .clan-block-grid-2 .clan-block-grid-2-sticky {
        height: min-content;
        top: 15px;
        position: sticky;
    }
}

@media (max-width: 1200px) {
    .clan-members-table {
        font-size: 13px;
    }

    .clan-members-table thead th,
    .clan-members-table tbody td {
        padding: 12px 8px;
    }

    .clan-members-avatar {
        width: 35px;
        height: 35px;
    }

    .clan-members-layout {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }

    .clan-content-modern {
        grid-template-columns: 1fr;
    }

    .clan-roles-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }

    .clan-roles-list-modern {
        max-height: none;
    }

    .clan-members-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .clan-roles-sidebar {
        order: 2;
    }

    .clan-members-section {
        order: 1;
    }
}

@media (max-width: 992px) {
    .clan-members-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .clan-roles-section {
        order: -1;
    }

    .clan-settings-row {
        grid-template-columns: 1fr;
    }

    .clan-settings-images {
        grid-template-columns: 1fr;
    }

    .clan-settings-actions {
        flex-direction: column-reverse;
    }

    .clan-settings-action-btn {
        width: 100%;
        justify-content: center;
    }

    .row_admins {
        gap: 5px;
    }

    .row_admins .col-md-6 {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

@media (min-width: 1130px) {
    .clan-grid-2 {
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 15px;
    }

    .clan-grid-2 .clan-grid-2-sticky {
        display: grid;
        gap: 15px;
        height: min-content;
        top: 80px;
        position: sticky;
        order: 1;
    }

    .clan-block-grid-2 {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 15px;
    }

    .clan-block-grid-2 .clan-block-grid-2-sticky {
        height: min-content;
        top: 15px;
        position: sticky;
    }
}

@media (max-width: 480px) {
    .clan_card {
        padding: 10px;
    }

    .row_admins {
        gap: 3px 5px;
    }

    .clan-modal {
        padding: 15px 10px;
    }

    .clan-modal-content {
        border-radius: 8px;
    }

    .clan-modal-close {
        width: 30px;
        height: 30px;
    }

    .clan-modal-form,
    .clan-modal-body {
        padding: 18px;
        gap: 16px;
    }

    .clan-inputs-inline-label {
        font-size: 13px;
    }

    .clans-header {
        padding: 16px;
        margin-bottom: 20px;
    }

    .clans-header h1 {
        font-size: 24px;
    }

    .clans-header p {
        font-size: 13px;
    }

    .clan-card {
        height: 200px;
    }

    .clan-card-banner {
        padding: 10px;
    }

    .clan-card-rank {
        font-size: 14px;
        padding: 3px 7px;
    }

    .clan-card-status {
        font-size: 7px;
        padding: 2px 5px;
    }

    .clan-card-avatar img {
        width: 40px;
        height: 40px;
    }

    .clan-card-name {
        font-size: 12px;
    }

    .clan-card-tag {
        font-size: 9px;
    }

    .clan-card-stat {
        font-size: 9px;
        padding: 2px 5px;
    }

    .clan-card-members {
        font-size: 9px;
        padding: 4px 6px;
    }

    .clan-card-stat svg {
        width: 10px;
        height: 10px;
    }

    .clan-header-banner {
        height: 200px;
    }

    .clan-header-content {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .clan-header-avatar {
        width: 80px;
        height: 80px;
    }

    .clan-header-name {
        font-size: 20px;
    }

    .clan-header-left {
        gap: 12px;
    }

    .clan-tabs {
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .clan-tabs::-webkit-scrollbar {
        display: none;
    }

    .clan-tab {
        padding: 10px 16px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .clan-modal-body {
        padding: 16px 18px;
    }

    .clan-modal-footer {
        padding: 12px 18px 16px 18px;
        flex-direction: row;
        gap: 10px;
        display: flex;
        justify-content: space-between;
    }

    .clan-modal-btn {
        width: 100%;
        padding: 11px 20px;
    }

    .clan-input-group {
        margin-bottom: 16px;
    }

    .clan-input-label {
        font-size: 13px;
    }

    .clan-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .clan-input-counter {
        font-size: 11px;
    }

    .clan-file-label {
        padding: 10px 16px;
        font-size: 13px;
    }

    .clan-file-label svg {
        width: 16px;
        height: 16px;
    }

    .clan-members-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .clan-members-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .clan-members-table {
        min-width: 600px;
        font-size: 11px;
    }

    .clan-members-table thead th,
    .clan-members-table tbody td {
        padding: 8px 4px;
    }

    .clan-members-avatar {
        width: 28px;
        height: 28px;
    }

    .clan-settings-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .clan-settings-images {
        grid-template-columns: 1fr;
    }

    .clan-settings-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .clan-settings-action-btn {
        width: 100%;
    }

    .clan-settings-section fieldset:has(> .inputs-inline) {
        grid-template-columns: 1fr;
    }

    .clan-roles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .clan-role-create-btn {
        width: 100%;
        justify-content: center;
    }

    .clan-role-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .clan-role-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .clan-info-stats {
        flex-direction: column;
        gap: 10px;
    }

    .clan-info-stat-left,
    .clan-info-stat-right {
        justify-content: center;
        gap: 15px;
    }

    .clan-btn,
    .clan-btn-primary,
    .clan-btn-secondary {
        width: 100%;
        padding: 12px 20px;
    }

    .clan-request-item {
        flex-direction: column;
        gap: 12px;
    }

    .clan-request-actions {
        width: 100%;
        justify-content: stretch;
    }

    .clan-shop-header {
        padding: 16px;
    }

    .clan-shop-bank-info {
        gap: 12px;
    }

    .clan-shop-bank-icon {
        width: 48px;
        height: 48px;
    }

    .clan-shop-bank-icon svg {
        width: 24px;
        height: 24px;
    }

    .clan-shop-bank-amount {
        font-size: 24px;
    }

    .clan-shop-bank-content h3 {
        font-size: 12px;
    }

    .clan-shop-item {
        padding: 14px;
        gap: 12px;
    }

    .clan-shop-item-icon {
        width: 44px;
        height: 44px;
    }

    .clan-shop-item-name {
        font-size: 15px;
    }

    .clan-shop-item-price {
        font-size: 16px;
    }

    .clan-shop-item-actions {
        gap: 10px;
    }

    .clan-shop-item-actions button {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        justify-content: center;
    }

    .clan-shop-item-actions button.active {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .clan-shop-item-actions button.active.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .clan-shop-admin-item {
        padding: 16px;
    }

    .clan-shop-admin-item-icon {
        width: 48px;
        height: 48px;
    }

    .clan-shop-admin-item-name {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .clan-shop-admin-item-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .clan-shop-admin-item-actions .button {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: none !important;
    }

    .clan-shop-admin-item-actions .button.active {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .clans-blocks {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .clan-payment-option {
        padding: 16px;
        gap: 12px;
    }

    .clan-payment-option-icon {
        width: 44px;
        height: 44px;
    }

    .clan-payment-option-icon svg {
        width: 22px;
        height: 22px;
    }

    .clan-payment-option-info h4 {
        font-size: 15px;
    }

    .clan-payment-option-price,
    .clan-payment-option-balance {
        font-size: 13px;
    }

    .clan-shop-item-actions {
        gap: 8px;
    }

    .clan-shop-item-actions button {
        width: 100%;
        padding: 11px 14px;
        font-size: 13px;
        justify-content: center;
    }

    .clan-shop-item-actions button.active {
        width: 100%;
        padding: 11px 14px;
        font-size: 13px;
    }

    .clan-shop-item-actions button.active.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .clan-shop-admin-item {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
    }

    .clan-shop-admin-item-icon {
        width: 48px;
        height: 48px;
    }

    .clan-shop-admin-item-name {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .clan-shop-admin-item-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .clan-shop-admin-item-actions .button {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .clan-shop-admin-item-actions .button.active {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .clan-permissions-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 360px) {
    .clan_card {
        padding: 8px;
    }

    .row_admins {
        gap: 3px;
    }

    .clans-header h1 {
        font-size: 20px;
    }

    .clan-card-banner {
        padding: 10px;
        min-height: 140px;
    }
}



.clan-leaderboard-empty {
    background: var(--card);
    padding: 60px 32px;
    border-radius: 16px;
    text-align: center;
}

.clan-leaderboard-empty svg {
    width: 80px;
    height: 80px;
    fill: var(--text-custom);
    opacity: 0.3;
    margin-bottom: 24px;
}

.clan-leaderboard-empty h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-default);
}

.clan-leaderboard-empty p {
    font-size: 16px;
    color: var(--text-custom);
    margin: 0;
}



.clan-leaderboard-podium {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: flex-end;
}

.clan-podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px 16px;
    overflow: visible;
}

.clan-podium-item.clan-card {
    background: transparent;
    border: none;
    padding: 0;
    height: auto;
}

.clan-podium-item .clan-card-banner {
    display: none;
}

.clan-podium-item .clan-card-body {
    display: none;
}

.clan-podium-2 {
    order: 1;
    width: 150px;
    min-height: 280px;
    position: relative;
    scale: 0.85;
}

.clan-podium-2 .clan-podium-rank {
    width: 50px;
    height: 50px;
    background-image: url('/app/modules/module_page_clans/img/leaderboard/top2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    color: transparent;
    margin-bottom: 8px;
    text-shadow: none;
}

.clan-podium-2::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 76px;
    width: 95px;
    height: 100px;
    background-image: url('/app/modules/module_page_clans/img/leaderboard/top2img.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

.clan-podium-2::after {
    content: '';
    position: absolute;
    right: -35px;
    top: 75px;
    width: 95px;
    height: 100px;
    background-image: url('/app/modules/module_page_clans/img/leaderboard/top2img.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    transform: scaleX(-1);
}

.clan-podium-1 {
    order: 2;
    width: 170px;
    z-index: 10;
    position: relative;
}

.clan-podium-1 .clan-podium-rank {
    width: 60px;
    height: 60px;
    background-image: url('/app/modules/module_page_clans/img/leaderboard/top1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    color: transparent;
    margin-bottom: 12px;
    text-shadow: none;
}

.clan-podium-1::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 90px;
    width: 100px;
    height: 110px;
    background-image: url('/app/modules/module_page_clans/img/leaderboard/top1img.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

.clan-podium-1::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 90px;
    width: 100px;
    height: 110px;
    background-image: url('/app/modules/module_page_clans/img/leaderboard/top1img.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    transform: scaleX(-1);
}

.clan-podium-3 {
    order: 3;
    width: 150px;
    min-height: 280px;
    position: relative;
    scale: 0.85;
}

.clan-podium-3 .clan-podium-rank {
    width: 50px;
    height: 50px;
    background-image: url('/app/modules/module_page_clans/img/leaderboard/top3.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    color: transparent;
    margin-bottom: 8px;
    text-shadow: none;
}

.clan-podium-3::before {
    display: block;
    content: '';
    position: absolute;
    left: -35px;
    top: 76px;
    width: 95px;
    height: 100px;
    background-image: url('/app/modules/module_page_clans/img/leaderboard/top3img.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

.clan-podium-3::after {
    display: block;
    content: '';
    position: absolute;
    right: -35px;
    top: 75px;
    width: 95px;
    height: 100px;
    background-image: url('/app/modules/module_page_clans/img/leaderboard/top3img.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    transform: scaleX(-1);
}

.clan-podium-rank {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 2;
}

.clan-podium-avatar {
    display: block;
    margin: 0 auto 12px;
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.clan-podium-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.clan-podium-2 .clan-podium-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.clan-podium-2 .clan-podium-avatar img {
    border-width: 2px;
}

.clan-podium-3 .clan-podium-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.clan-podium-3 .clan-podium-avatar img {
    border-width: 2px;
}

.clan-podium-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-default);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    word-break: break-word;
}

.clan-podium-2 .clan-podium-name,
.clan-podium-3 .clan-podium-name {
    font-size: 18px;
}

.clan-podium-name:hover {
    color: var(--span);
}

.clan-podium-tag {
    font-size: 13px;
    color: var(--text-custom);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.clan-podium-2 .clan-podium-tag,
.clan-podium-3 .clan-podium-tag {
    font-size: 13px;
    margin-bottom: 10px;
}

.clan-podium-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 14px;
}

.clan-podium-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--transparent-10-w);
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-custom);
}

.clan-podium-2 .clan-podium-stats span,
.clan-podium-3 .clan-podium-stats span {
    font-size: 16px;
}

.clan-podium-stats svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.clan-podium-1 .clan-podium-stats svg {
    width: 14px;
    height: 14px;
}

.clan-podium-2 .clan-podium-stats svg,
.clan-podium-3 .clan-podium-stats svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 480px) {
    .clans-blocks {
        grid-template-columns: 1fr;
    }

    .clan-card {
        height: auto;
        min-height: 130px;
        border-radius: 10px;
    }

    .clan-card-banner {
        padding: 8px;
        border-radius: 10px;
        gap: 8px;
    }

    .clan-card-banner::before {
        border-radius: 10px;
    }

    .clan-card-header {
        gap: 4px;
        margin-bottom: 6px;
    }

    .clan-card-rank {
        font-size: 11px;
        padding: 2px 4px;
        border-radius: 3px;
    }

    .clan-card-status {
        font-size: 6px;
        padding: 2px 3px;
        border-radius: 2px;
    }

    .clan-card-center {
        gap: 8px;
        margin-bottom: 6px;
        flex: 1;
    }

    .clan-card-avatar {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .clan-card-avatar img {
        border-width: 1px;
    }

    .clan-card-body {
        gap: 1px;
        flex: 1;
    }

    .clan-card-name {
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .clan-card-tag {
        font-size: 10px;
        letter-spacing: 0.3px;
        line-height: 1;
    }

    .clan-card-bottom {
        gap: 4px;
        justify-content: space-between;
        align-items: center;
    }

    .clan-card-stats {
        gap: 2px;
    }

    .clan-card-stat {
        font-size: 10px;
        padding: 2px 4px;
        gap: 2px;
    }

    .clan-card-stat svg {
        width: 10px;
        height: 10px;
    }

    .clan-card-members {
        font-size: 9px;
        padding: 2px 4px;
        gap: 2px;
    }

    .clan-card-members svg {
        width: 10px;
        height: 10px;
    }

    .clan-preview-card {
        height: 170px;
        max-width: 100%;
    }

    .clan-preview-card .clan-card-banner {
        min-height: 170px;
        padding: 10px;
    }

    .clan-preview-card .clan-card-avatar {
        width: 50px;
        height: 50px;
    }

    .clan-preview-card .clan-card-name {
        font-size: 14px;
    }

    .clan-preview-card .clan-card-tag {
        font-size: 11px;
    }

    .clan-leaderboard-podium {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .clan-podium-1,
    .clan-podium-2,
    .clan-podium-3 {
        order: 0;
        width: 100%;
        min-height: auto;
        transform: scale(1);
        opacity: 1;
        z-index: auto;
    }

    .clan-podium-1::before,
    .clan-podium-1::after,
    .clan-podium-2::before,
    .clan-podium-2::after,
    .clan-podium-3::before,
    .clan-podium-3::after {
        display: none;
    }

    .clan-podium-rank {
        width: 35px;
        height: 35px;
    }

    .clan-podium-1 .clan-podium-rank {
        width: 40px;
        height: 40px;
    }

    .clan-podium-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    .clan-podium-1 .clan-podium-avatar,
    .clan-podium-2 .clan-podium-avatar,
    .clan-podium-3 .clan-podium-avatar {
        width: 60px;
        height: 60px;
    }

    .clan-podium-name {
        font-size: 14px;
    }

    .clan-podium-2 .clan-podium-name,
    .clan-podium-3 .clan-podium-name {
        font-size: 18px;
    }

    .clan-podium-tag {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .clan-podium-stats {
        gap: 3px;
    }

    .clan-podium-stat {
        font-size: 11px;
    }

    .clan-preview-card {
        height: 170px;
        max-width: 100%;
    }

    .clan-preview-card .clan-card-banner {
        min-height: 170px;
        padding: 10px;
    }

    .clan-preview-card .clan-card-avatar {
        width: 50px;
        height: 50px;
    }

    .clan-preview-card .clan-card-name {
        font-size: 14px;
    }

    .clan-preview-card .clan-card-tag {
        font-size: 11px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .clans-blocks {
        grid-template-columns: repeat(2, 1fr);
    }

    .clan-card {
        height: auto;
        min-height: 150px;
        border-radius: 11px;
    }

    .clan-card-banner {
        padding: 9px;
        border-radius: 11px;
        gap: 8px;
    }

    .clan-card-banner::before {
        border-radius: 11px;
    }

    .clan-card-header {
        gap: 6px;
        margin-bottom: 8px;
    }

    .clan-card-rank {
        font-size: 12px;
        padding: 3px 5px;
    }

    .clan-card-status {
        font-size: 7px;
        padding: 2px 4px;
    }

    .clan-card-center {
        gap: 9px;
        margin-bottom: 8px;
    }

    .clan-card-avatar {
        width: 44px;
        height: 44px;
    }

    .clan-card-body {
        gap: 2px;
    }

    .clan-card-name {
        font-size: 14px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .clan-card-tag {
        font-size: 10px;
    }

    .clan-card-bottom {
        gap: 5px;
    }

    .clan-card-stats {
        gap: 3px;
    }

    .clan-card-stat {
        font-size: 11px;
        padding: 2px 5px;
    }

    .clan-card-stat svg {
        width: 11px;
        height: 11px;
    }

    .clan-card-members {
        font-size: 10px;
        padding: 2px 5px;
    }

    .clan-card-members svg {
        width: 11px;
        height: 11px;
    }

    .clan-preview-card {
        height: 180px;
        max-width: 100%;
    }

    .clan-preview-card .clan-card-banner {
        min-height: 180px;
        padding: 11px;
    }

    .clan-preview-card .clan-card-avatar {
        width: 56px;
        height: 56px;
    }

    .clan-preview-card .clan-card-name {
        font-size: 15px;
    }

    .clan-preview-card .clan-card-tag {
        font-size: 11px;
    }

    .clan-leaderboard-podium {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .clan-podium-1,
    .clan-podium-2,
    .clan-podium-3 {
        order: 0;
        width: 100%;
        min-height: auto;
        transform: scale(1);
        opacity: 1;
        z-index: auto;
    }

    .clan-podium-1::before,
    .clan-podium-1::after,
    .clan-podium-2::before,
    .clan-podium-2::after,
    .clan-podium-3::before,
    .clan-podium-3::after {
        display: none;
    }

    .clan-podium-rank {
        width: 40px;
        height: 40px;
    }

    .clan-podium-1 .clan-podium-rank {
        width: 45px;
        height: 45px;
    }

    .clan-podium-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .clan-podium-1 .clan-podium-avatar,
    .clan-podium-2 .clan-podium-avatar,
    .clan-podium-3 .clan-podium-avatar {
        width: 70px;
        height: 70px;
    }

    .clan-podium-name {
        font-size: 15px;
    }

    .clan-podium-2 .clan-podium-name,
    .clan-podium-3 .clan-podium-name {
        font-size: 18px;
    }

    .clan-podium-tag {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .clan-podium-stats {
        gap: 4px;
    }

    .clan-podium-stat {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 920px) {
    .clans-blocks {
        grid-template-columns: repeat(3, 1fr);
    }

    .clan-card {
        height: 160px;
        border-radius: 11px;
    }

    .clan-card-banner {
        padding: 9px;
        border-radius: 11px;
        gap: 8px;
    }

    .clan-card-banner::before {
        border-radius: 11px;
    }

    .clan-card-header {
        gap: 6px;
        margin-bottom: 8px;
    }

    .clan-card-rank {
        font-size: 13px;
        padding: 3px 5px;
    }

    .clan-card-status {
        font-size: 7px;
        padding: 2px 4px;
    }

    .clan-card-center {
        gap: 9px;
        margin-bottom: 8px;
    }

    .clan-card-avatar {
        width: 44px;
        height: 44px;
    }

    .clan-card-body {
        gap: 2px;
    }

    .clan-card-name {
        font-size: 14px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .clan-card-tag {
        font-size: 10px;
    }

    .clan-card-bottom {
        gap: 5px;
    }

    .clan-card-stats {
        gap: 3px;
    }

    .clan-card-stat {
        font-size: 11px;
        padding: 2px 5px;
    }

    .clan-card-stat svg {
        width: 11px;
        height: 11px;
    }

    .clan-card-members {
        font-size: 10px;
        padding: 2px 5px;
    }

    .clan-card-members svg {
        width: 11px;
        height: 11px;
    }

    .clan-preview-card {
        height: 190px;
    }

    .clan-preview-card .clan-card-banner {
        min-height: 190px;
        padding: 11px;
    }

    .clan-preview-card .clan-card-avatar {
        width: 60px;
        height: 60px;
    }

    .clan-preview-card .clan-card-name {
        font-size: 15px;
    }

    .clan-preview-card .clan-card-tag {
        font-size: 11px;
    }

    .clan-leaderboard-podium {
        flex-direction: row;
        align-items: flex-end;
        gap: 60px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .clan-podium-2 {
        order: 1;
        width: 120px;
        min-height: 240px;
        scale: 0.9;
    }

    .clan-podium-2::before,
    .clan-podium-2::after {
        display: none;
    }

    .clan-podium-1 {
        order: 2;
        width: 140px;
        z-index: 10;
    }

    .clan-podium-1::before,
    .clan-podium-1::after {
        display: none;
    }

    .clan-podium-3 {
        order: 3;
        width: 120px;
        min-height: 240px;
        scale: 0.9;
    }

    .clan-podium-3::before,
    .clan-podium-3::after {
        display: none;
    }

    .clan-podium-rank {
        width: 38px;
        height: 38px;
    }

    .clan-podium-1 .clan-podium-rank {
        width: 48px;
        height: 48px;
    }

    .clan-podium-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }

    .clan-podium-2 .clan-podium-avatar,
    .clan-podium-3 .clan-podium-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 6px;
    }

    .clan-podium-name {
        font-size: 14px;
    }

    .clan-podium-2 .clan-podium-name,
    .clan-podium-3 .clan-podium-name {
        font-size: 18px;
    }

    .clan-podium-stat {
        font-size: 11px;
    }
}

@media (min-width: 921px) {
    .clans-blocks {
        grid-template-columns: repeat(4, 1fr);
    }

    .clan-card-banner {
        border-radius: 12px;
        gap: 10px;
    }

    .clan-card-banner::before {
        border-radius: 12px;
    }

    .clan-card-header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .clan-card-rank {
        font-size: 14px;
        padding: 4px 5px;
    }

    .clan-card-status {
        font-size: 8px;
        padding: 3px 6px;
    }

    .clan-card-center {
        gap: 10px;
        margin-bottom: 10px;
    }

    .clan-card-avatar {
        width: 48px;
        height: 48px;
    }

    .clan-card-body {
        gap: 2px;
    }

    .clan-card-name {
        font-size: 15px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .clan-card-tag {
        font-size: 11px;
    }

    .clan-card-bottom {
        gap: 6px;
    }

    .clan-card-stats {
        gap: 4px;
    }

    .clan-card-stat {
        font-size: 13px;
        padding: 3px 7px;
    }

    .clan-card-stat svg {
        width: 12px;
        height: 12px;
    }

    .clan-card-members {
        font-size: 11px;
        padding: 3px 7px;
    }

    .clan-card-members svg {
        width: 12px;
        height: 12px;
    }

    .clan-preview-card {
        height: 200px;
    }

    .clan-preview-card .clan-card-banner {
        min-height: 200px;
        padding: 12px;
    }

    .clan-preview-card .clan-card-avatar {
        width: 64px;
        height: 64px;
    }

    .clan-preview-card .clan-card-name {
        font-size: 16px;
    }

    .clan-preview-card .clan-card-tag {
        font-size: 12px;
    }

    .clan-podium-rank {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .clan-podium-2 .clan-podium-name,
    .clan-podium-3 .clan-podium-name {
        font-size: 18px;
    }

    .clan-podium-stat {
        font-size: 12px;
    }
}

.clan-setup-margin-bottom {
    margin-bottom: 20px;
}

.clan-setup-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clan-setup-title svg {
    width: 20px;
    height: 20px;
}

.clan-setup-description {
    color: var(--text-custom);
}

.clan-setup-code {
    background: var(--transparent-10-b);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
}

.clan-setup-info-box {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--transparent-5-w);
    border-radius: 8px;
}

.clan-setup-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.clan-setup-info-title {
    color: var(--text-default);
    font-size: 14px;
}

.clan-setup-info-text {
    margin: 0;
    color: var(--text-custom);
    font-size: 13px;
}

.clan-setup-status-connected {
    color: var(--green);
}

.clan-setup-status-disconnected {
    color: var(--red);
}

.clan-setup-error-box {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--red-10);
    border-radius: 8px;
    border: 1px solid var(--red-20);
}

.clan-setup-error-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.clan-setup-error-icon {
    width: 20px;
    height: 20px;
}

.clan-setup-error-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--red);
}

.clan-setup-error-text {
    margin: 0 0 12px 0;
    color: var(--text-custom);
    font-size: 13px;
    line-height: 1.6;
}

.clan-setup-error-details {
    margin-top: 12px;
}

.clan-setup-error-summary {
    cursor: pointer;
    color: var(--span);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.clan-setup-error-code {
    background: var(--transparent-10-b);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}

.clan-setup-error-pre {
    background: var(--transparent-10-b);
    padding: 16px;
    border-radius: 8px;
    margin-top: 8px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-custom);
    font-family: monospace;
}

.clan-setup-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.clan-setup-success {
    text-align: center;
    padding: 40px 20px;
}

.clan-setup-success-icon {
    width: 64px;
    height: 64px;
    fill: var(--green);
    margin-bottom: 20px;
}

.clan-setup-success-title {
    color: var(--green);
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
}

.clan-setup-success-text {
    color: var(--text-custom);
}

.clan-setup-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.clan-setup-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clan-setup-management {
    padding-top: 30px;
}

.clan-setup-management-text {
    margin-bottom: 15px;
    color: var(--text-custom);
    opacity: 0.8;
}

.clan-input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clans-admin-note {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.clans-mass-action-btn {
    margin-top: 15px;
}

.clan-input-counter {
    font-size: 12px;
    color: var(--text-custom);
    opacity: 0.6;
    margin-left: auto;
    float: right;
}

.clan-settings-input-wrapper {
    position: relative;
}

.clan-tag-opacity {
    opacity: 0.7;
    font-weight: normal;
}

.clan-card-banner[data-banner-url]::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.clan-podium-item[data-banner-url] {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 51%, rgba(0, 0, 0, 0.85) 62%), var(--banner-image);
}

.clan-role-immunity {
    opacity: 0.6;
}

.clan-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.clan-spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

#clan-role-color-input {
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: var(--br-8);
    padding: 8px 12px;
    width: 100%;
    min-height: 40px;
    transition: border-color 0.2s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 840px) {
    .clan-member-row {
        grid-template-columns: 40px 1fr 100px 60px 60px 60px 1fr 40px;
        gap: 8px;
        padding: 10px 8px;
    }
}

@media (max-width: 720px) {
    .clan-member-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .clan-member-row-rank {
        display: none;
    }

    .clan-member-row-name {
        grid-column: 1;
        margin-bottom: 4px;
    }

    .clan-member-row-role {
        grid-column: 1;
    }

    .clan-member-row-kills,
    .clan-member-row-deaths {
        display: none;
    }

    .clan-member-row-kd {
        grid-column: 1;
    }

    .clan-member-row-activity {
        display: flex;
        grid-column: 1;
        padding: 6px 8px;
        color: var(--text-secondary);
        font-size: 12px;
    }

    .clan-member-row-actions {
        grid-column: 1;
        justify-self: start;
        gap: 8px;
    }

    .clan-members-table {
        display: none;
    }

    .clan-members-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
    }

    .clan-members-search {
        width: 100%;
        min-width: unset;
    }

    .clan-members-header-cell,
    .clan-members-header-stat {
        max-width: 100%;
    }

    .clan-members-header-rank {
        grid-column: 1;
    }

    .clan-members-header-name {
        grid-column: 2;
    }

    .clan-members-header-role,
    .clan-members-header-kills,
    .clan-members-header-deaths,
    .clan-members-header-kd,
    .clan-members-header-activity {
        display: none;
    }
}