.skeleton-anim-reset::after {
    animation: none !important;
}

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

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

.all_nav.tabs__buttons.navigation-filters {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.all_nav .filter {
    flex: 1 1 auto;
}

.all_nav .filter svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
}

.all_nav .filter.active span {
    color: var(--text-default-invert);
}

.all_nav .filter.active svg {
    fill: var(--text-default-invert);
}

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

.clans-blocks {
    display: grid;
    gap: 15px;
}

.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-weight: 700;
    color: var(--text-custom);
    background: var(--transparent-5-w);
    border-radius: 5px;
    text-align: center;
}

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

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

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

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

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

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

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

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

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

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

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

.clan-card-members svg {
    opacity: 1;
    flex-shrink: 0;
}

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

.clan-payment-item-name {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px 0;
    padding: 10px 14px;
    border-radius: var(--br-12);
    background: var(--button);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-default);
    text-align: center;
}

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

.clan-payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-12);
    background: var(--button);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.clan-payment-option:hover:not(.disabled) {
    border-color: var(--span-half);
    background: var(--span-low);
}

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

.clan-payment-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--br-10);
    background: var(--button-hover);
}

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

.clan-payment-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

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

.clan-payment-option-balance {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.clan-payment-option-balance.is-short {
    color: var(--red);
}

.clan-payment-option-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--span);
    white-space: nowrap;
}

.clan-payment-option-price svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

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

.clan-preview-card .clan-card-banner {
    height: 100%;
}

.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-name {
    font-weight: 700;
}
.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-page-wrapper {
    flex-direction: column;
}

.clan-back-button {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    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-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

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

.clan-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--red);
    font-weight: 700;
    box-sizing: border-box;
}

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

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

.clan-info-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 700;
    color: var(--text-default);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--transparent-5-w);
}

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

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

.clan-transfer-warning {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--red-10);
    border: 1px solid var(--red-20);
    border-radius: var(--br-12);
    margin-bottom: 16px;
}

#clan-transfer-modal hr,
#clan-confirm-modal hr {
    margin: 8px 0;
}

#clan-transfer-modal .card-bottom,
#clan-confirm-modal .card-bottom,
#createRoleModal .card-bottom,
#editRoleModal .card-bottom {
    gap: 8px;
}

#clan-transfer-modal .card-bottom button,
#clan-confirm-modal .card-bottom button,
#createRoleModal .card-bottom button,
#editRoleModal .card-bottom button {
    flex: 1;
}

.clan-transfer-warning svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: var(--red);
}

.clan-transfer-warning p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-default);
}

.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-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-settings-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.clan-settings-actions {
    justify-content: flex-end;
}

.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-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clan-settings-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-custom);
}

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

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

.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-name {
    color: var(--text-default);
    font-size: 16px;
    font-weight: 500;
}

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

.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-member-stat-full {
    flex: 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);
}

.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-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-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-stat span {
    font-weight: 600;
}

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

#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-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-default);
    margin: 0 0 16px 0;
}

.clan-requests-title svg {
    width: 22px;
    height: 22px;
    fill: var(--text-default);
    flex-shrink: 0;
}

.clan-requests-count {
    color: var(--text-custom);
    font-weight: 500;
    font-size: 16px;
}

.clan-requests-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 328px;
    overflow-y: auto;
}

.clan-request-card {
    background: var(--button);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.clan-request-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clan-request-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.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;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.clan-settings-upload-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !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;
}

.clan-history-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.clan-history-empty p {
    font-size: 15px;
    color: var(--text-custom);
    margin: 0;
}
.clan-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 828px;
    overflow-y: auto;
    padding-right: 8px;
}

.clan-history-item {
    background: var(--button);
    border-radius: 12px;
    padding: 16px 20px;
}

.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-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 {
    filter: brightness(1.1);
}

.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-history-item[data-event-type="shop_purchase"] .clan-history-item-icon {
    background: rgba(103, 58, 183, 0.15);
}

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

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

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

.clan-history-item[data-event-type="chat_message"] .clan-history-item-icon,
.clan-history-item[data-event-type="chat_image"] .clan-history-item-icon {
    background: rgba(0, 188, 212, 0.15);
}

.clan-history-item[data-event-type="chat_message"] .clan-history-item-icon svg,
.clan-history-item[data-event-type="chat_image"] .clan-history-item-icon svg {
    fill: #00bcd4;
}

.clan-admin-logs-filters {
    margin-bottom: 16px;
}

.clan-admin-logs-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.clan-admin-logs-filter-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.clan-admin-logs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--transparent-5-w);
}

.clan-logs-dots-jump {
    cursor: pointer;
    transition: color 0.15s;
}

.clan-logs-dots-jump:hover {
    color: var(--text-default);
}

.clan-logs-dots-input {
    width: 52px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-8);
    background: var(--button);
    color: inherit;
    font-size: 14px;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}

.clan-logs-dots-input::-webkit-outer-spin-button,
.clan-logs-dots-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.clan-history-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.clan-history-item-arrow {
    font-size: 13px;
    color: var(--text-custom);
    opacity: 0.6;
    flex-shrink: 0;
}

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

.clan-shop-items {
    display: grid;
    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 {
    color: var(--text-default);
    margin: 0;
}

.clan-shop-item-description {
    margin: 0;
}

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

.clan-shop-item-price {
    display: flex;
    align-items: center;
    font-weight: 700;
}

.clan-shop-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border-radius: 12px;
}

.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-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-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-hidden {
    display: none;
}

.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;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
}

.settings_wrapper {
    display: flex;
    width: 100%;
    gap: 10px;
    padding: 0.3rem;
}

.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: 140px;
    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/assets/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/assets/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/assets/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/assets/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/assets/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/assets/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/assets/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/assets/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/assets/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-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;
}

.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-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-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-management {
    padding-top: 30px;
}

.clan-setup-management-text {
    margin-bottom: 15px;
    color: var(--text-custom);
    opacity: 0.8;
}

.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] {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.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-role-immunity {
    opacity: 0.6;
}

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

label:has(+ input[required])::after,
label:has(+ div input[required])::after,
label:has(+ .adaptive-select-wrapper input[required])::after,
label:has(+ textarea[required])::after,
label:has(+ select[required])::after {
    content: " *";
    color: #dc3545;
}

.clan-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #2a2a2a;
    flex-shrink: 0;
}

.clan-member-avatar-link {
    display: inline-flex;
    text-decoration: none;
    border-radius: 12px;
    transition: opacity 0.2s ease;
}

.clan-member-avatar-link:hover {
    opacity: 0.8;
}

.clan-chat-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
    height: min(640px, 75vh);
}

.clan-chat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-16);
    overflow: hidden;
}

.clan-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.clan-chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--text-secondary);
    font-size: 14px;
}

.clan-chat-message {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    animation: slideIn 0.2s ease-out;
    transition: background 0.2s ease;
}

.clan-chat-message:hover {
    background: var(--button);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clan-chat-message-avatar {
    flex-shrink: 0;
}

.clan-chat-message-avatar img {
    width: 36px;
    height: 36px;
    border-radius: var(--br-10);
    object-fit: cover;
    border: 1px solid var(--transparent-5-w);
}

.clan-chat-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.clan-chat-message-author {
    color: var(--text-default);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.clan-chat-message-author:hover {
    color: var(--span);
}

.clan-chat-message-role {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--button);
    border-radius: var(--br-6);
    color: var(--span);
}

.clan-chat-message-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.clan-chat-message-body {
    color: var(--text-default);
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    flex: 1;
}

.clan-chat-message-image {
    margin-top: 8px;
}

.clan-chat-message-image img {
    max-width: 300px;
    max-height: 300px;
    border-radius: var(--br-12);
    cursor: pointer;
    transition: opacity 0.2s;
}

.clan-chat-message-image img:hover {
    opacity: 0.9;
}

.clan-chat-message-delete {
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: auto;
}

.clan-chat-form {
    padding: 12px;
    border-top: 1px solid var(--transparent-5-w);
}

.clan-chat-form .inputs-inline {
    width: 100%;
    margin-bottom: 0;
}

.clan-chat-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.clan-chat-input-group input[type="text"] {
    flex: 1;
    height: var(--input-height);
}

.clan-chat-input-group button,
.clan-chat-form .file-upload-container label {
    height: var(--input-height);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clan-chat-sidebar {
    background: var(--bg);
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-16);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.clan-chat-online-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--transparent-5-w);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clan-chat-online-header h3 {
    margin: 0;
    font-size: 15px;
}

.clan-online-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-default);
    background: var(--button);
    padding: 4px 10px;
    border-radius: var(--br-8);
}

.clan-chat-online-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
}

.clan-chat-online-member {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.clan-chat-online-member-avatar {
    position: relative;
    flex-shrink: 0;
}

.clan-chat-online-member-avatar img {
    width: 32px;
    height: 32px;
    border-radius: var(--br-8);
    object-fit: cover;
}

.clan-chat-online-member.online .clan-chat-online-member-avatar::after {
    content: '';
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--bg);
}

.clan-chat-online-member-info {
    flex: 1;
    min-width: 0;
}

.clan-chat-online-member-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-default);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clan-chat-online-member-status {
    font-size: 11px;
    color: var(--text-secondary);
}

.clan-chat-online-member.online .clan-chat-online-member-status {
    color: var(--green);
}

.clan-chat-form .file-upload-container {
    width: fit-content;
    flex-shrink: 0;
    border: none;
}

.popup_modal {
    pointer-events: none;
}

.popup_modal.visible {
    pointer-events: auto;
}

.clan-page-wrapper {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas:
        "side tabs"
        "side content";
    grid-template-rows: auto 1fr;
    gap: 10px 12px;
    align-items: start;
}

.clan-page-wrapper:has(> .clan-admin-link) {
    grid-template-areas:
        "top top"
        "side tabs"
        "side content";
    grid-template-rows: auto auto 1fr;
}

.clan-page-wrapper > .clan-admin-link {
    grid-area: top;
}

.clan-page-wrapper > .clan-sidebar {
    grid-area: side;
    position: sticky;
    top: 10px;
}

.clan-page-wrapper > .clan-tabs {
    grid-area: tabs;
    min-width: 0;
    padding: 6px;
    gap: 4px;
    background-color: var(--card);
    border-radius: var(--br-16);
}

.clan-page-wrapper > .clan-content-wrapper {
    grid-area: content;
    min-width: 0;
    background-color: var(--card);
    border-radius: var(--br-16);
    padding: 14px;
}

.clan-tabs .filter {
    border-radius: var(--br-12);
    white-space: nowrap;
}

.clan-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.clan-sidebar-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--br-16);
    background: var(--red-10);
    border: 1px solid var(--red-20);
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.clan-sidebar-warning svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.clan-sidebar-card {
    background-color: var(--card);
    border-radius: var(--br-16);
    overflow: hidden;
}

.clan-sidebar-banner {
    height: 130px;
    border-radius: 0;
}

.clan-sidebar-banner .clan-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
}

.clan-sidebar-banner .clan-back-button {
    top: 12px;
    left: 12px;
    font-size: 12px;
    padding: 5px 9px;
    border-radius: var(--br-8);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.clan-sidebar-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 14px 14px;
}

.clan-sidebar-avatar {
    width: 72px;
    height: 72px;
    margin-top: -36px;
    border-radius: var(--br-16);
    border: 4px solid var(--card);
    object-fit: cover;
}

.clan-sidebar-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
}

.clan-sidebar-title {
    overflow-wrap: anywhere;
}

.clan-sidebar-tag {
    padding: 2px 8px;
    border-radius: var(--br-8);
    background: var(--button-hover);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

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

.clan-sidebar-stat {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 9px;
    border-radius: var(--br-12);
    background: var(--button);
}

.clan-sidebar-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: var(--br-8);
    background: var(--button-hover);
    color: var(--text-secondary);
}

.clan-sidebar-stat-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.clan-sidebar-stat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.clan-sidebar-stat-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 11px;
}

.clan-sidebar-stat-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

.clan-sidebar-actions {
    display: flex;
}

.clan-sidebar-actions button {
    width: 100%;
    justify-content: center;
}

.clan-members-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clan-subtabs {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.clan-subtabs button {
    flex: 1 1 0;
    width: 100%;
    justify-content: center;
}

.clan-subtab-badge {
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    vertical-align: super;
}

.clan-tab-badge {
    min-width: 0;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--green);
    font-size: 11px;
    vertical-align: super;
}

.clan-pane {
    min-width: 0;
}

.clan-roles-table {
    display: flex;
    flex-direction: column;
    border-radius: var(--br-12);
    overflow: hidden;
}

.clan-roles-row {
    display: grid;
    grid-template-columns: 40px minmax(120px, 1fr) 90px repeat(5, 44px) 80px;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    font-size: 14px;
}

.clan-roles-row + .clan-roles-row {
    border-top: 1px solid var(--button);
}

.clan-roles-row-head {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.clan-roles-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.clan-roles-count {
    color: var(--text-secondary);
}

.clan-roles-perm,
.clan-roles-perm-head {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.clan-roles-perm.is-on {
    color: var(--green);
}

.clan-roles-perm svg,
.clan-roles-perm-head svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.clan-roles-row .clan-role-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.clan-roles-footer {
    display: flex;
    margin-top: 10px;
}

.clan-roles-footer button {
    width: 100%;
    justify-content: center;
}

.clan-members-layout > .clan-subtabs {
    align-self: stretch;
    width: 100%;
}

.clan-members-layout > .clan-pane {
    align-self: stretch;
    width: 100%;
}

.clan-mg-scroll {
    overflow: auto;
    max-height: min(600px, 70vh);
}

.clan-mg-scroll .clan-members-list {
    max-height: none;
    overflow: visible;
    padding: 0;
    min-width: 900px;
}

.clan-mg-row {
    display: grid;
    grid-template-columns: 40px minmax(140px, 1.6fr) 124px 64px 76px 76px 98px minmax(128px, 1fr) var(--input-height);
    align-items: center;
    gap: 14px;
    min-width: 900px;
    padding: 8px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--button);
    border-radius: 0;
    background: none;
}

.clan-members-list .clan-mg-row + .clan-mg-row {
    margin-top: 0;
}

.clan-mg-row:not(.clan-mg-head):hover {
    background: var(--button);
}

.clan-mg-head {
    padding-top: 6px;
    padding-bottom: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.clan-mg-cell {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clan-mg-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
}

.clan-mg-owner-icon {
    width: 22px;
    height: 22px;
    fill: var(--money);
}

.clan-mg-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clan-mg-player .clan-member-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border-width: 1px;
}

.clan-mg-player .clan-member-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.clan-mg-muted {
    color: var(--text-secondary);
}

.clan-mg-role {
    overflow: visible;
}

.clan-mg-role .clan-role-badge {
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--button-hover);
    font-size: 12px;
    letter-spacing: 0;
}

.clan-mg-role .clan-role-badge.owner {
    background: var(--money-bg);
    color: var(--money);
}

.clan-mg-activity .clan-member-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    color: var(--text-secondary);
    font-size: 12px;
}

.clan-mg-actions {
    overflow: visible;
}

.clan-mg-menu {
    position: relative;
}

.clan-mg-menu-list {
    position: fixed;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 170px;
    padding: 6px;
    border-radius: var(--br-12);
    background: var(--card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--button);
}

.clan-mg-menu.open .clan-mg-menu-list {
    display: flex;
}

.clan-mg-menu-list {
    max-height: 60vh;
    overflow-y: auto;
}

.clan-assign-target {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.clan-assign-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 50vh;
    overflow-y: auto;
}

.clan-mg-menu-list .button {
    width: 100%;
    justify-content: flex-start;
}

.clan-mg-menu-list button {
    width: 100%;
    justify-content: flex-start;
}

.clan-assign-option {
    width: 100%;
    justify-content: space-between;
}

.clan-sidebar-actions .button-delete {
    width: 100%;
}

.clan-member-online-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.clan-mg-activity .clan-member-status-online {
    color: var(--green);
    font-weight: 600;
}

.clan-mg-row .clan-member-stat-full {
    flex: 0 1 auto;
}

.clan-mg-scroll {
    container-type: inline-size;
}

.clan-mg-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--card);
}

.clan-members-list .clan-mg-row:last-child {
    border-bottom: 0;
}

.clan-roles-row.clan-role-item,
.clan-roles-row.clan-role-item:hover {
    padding: 12px 14px;
    border-radius: 0;
    background: none;
}

.clan-roles-name.clan-role-name {
    font-size: 14px;
    font-weight: 600;
}

.clan-roles-frame .clan-roles-table {
    min-width: 560px;
}

.clan-rq-frame {
    overflow-x: auto;
}

.clan-rq-row {
    display: grid;
    grid-template-columns: 36px minmax(140px, 1.5fr) minmax(130px, 1fr) 230px;
    align-items: center;
    gap: 8px;
    min-width: 560px;
    padding: 6px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--transparent-5-w);
}

.clan-rq-row:last-child {
    border-bottom: 0;
}

.clan-rq-head {
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.clan-rq-row.clan-request-card,
.clan-rq-row.clan-request-card:hover {
    background: none;
}

.clan-rq-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    overflow: visible;
}

.clan-rq-actions button {
    width: auto;
}

.clan-shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.clan-shop-balances {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.clan-shop-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--br-12);
    background: var(--button);
}

.clan-shop-balance svg {
    width: 16px;
    height: 16px;
    fill: var(--span);
}

.clan-shop-balance-label {
    color: var(--text-secondary);
    font-size: 12px;
}

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

.clan-shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.clan-shop-item-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.clan-shop-item-price.is-short,
.clan-shop-item-price-option.is-short {
    color: var(--red);
}

.clan-shop-item-price.is-short svg,
.clan-shop-item-price-option.is-short svg {
    fill: var(--red);
}

.clan-settings-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 10px;
}

.clan-settings-actions button {
    width: 100%;
    justify-content: center;
}

.clan-settings-section {
    border: 1px solid var(--transparent-5-w);
}

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

#clan-transfer-modal .card-bottom,
#clan-confirm-modal .card-bottom {
    display: flex;
    gap: 10px;
    margin: 0;
}

#clan-transfer-modal .popup_modal_head,
#clan-confirm-modal .popup_modal_head {
    margin-bottom: 4px;
}

.clan-confirm-message {
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: var(--br-12);
    background: var(--button);
    color: var(--text-default);
    font-size: 14px;
    line-height: 1.5;
}

#clan-transfer-modal .clan-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

#clan-transfer-modal .clan-form-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.clan-history-section {
    gap: 12px;
    container-type: inline-size;
}

.clan-history-content {
    padding: 0;
    background: none;
    border-radius: 0;
}

.clan-history-frame {
    max-height: min(640px, 70vh);
    overflow: auto;
}

.clan-history-frame .clan-history-list {
    max-height: none;
    overflow: visible;
    padding: 0;
    gap: 0;
}

.clan-hist-row {
    display: grid;
    grid-template-columns: 52px minmax(160px, 2.4fr) minmax(150px, 1.6fr) 124px;
    align-items: center;
    gap: 10px;
    min-width: 560px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--transparent-5-w);
    font-size: 13px;
}

.clan-hist-row:last-child,
.clan-history-list .clan-hist-row:last-child {
    border-bottom: 0;
}

.clan-history-item.clan-hist-row {
    background: none;
    border-radius: 0;
    padding: 10px 12px;
}

.clan-history-item.clan-hist-row:hover {
    background: var(--button);
}

.clan-hist-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 10px;
    padding-bottom: 10px;
    background: var(--card);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.clan-hist-cell {
    min-width: 0;
}

.clan-hist-desc {
    color: var(--text-default);
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.clan-hist-user {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.clan-hist-time {
    color: var(--text-secondary);
    white-space: nowrap;
}

.clan-hist-row .clan-history-item-user {
    padding: 3px 8px;
    background: var(--span-low);
    border-radius: var(--br-8);
    font-size: 12px;
}

.clan-hist-row .clan-history-item-icon {
    width: 34px;
    height: 34px;
}

.clan-history-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.clan-history-toolbar .clan-members-search {
    flex: 1 1 220px;
    max-width: 320px;
}

a.clan-history-item-user:hover {
    background: var(--span-middle);
    text-decoration: underline;
}

.clan-chat-form .file-upload-container label {
    width: var(--input-height);
    padding: 0;
}

.clan-sidebar-stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.clan-admin-card {
    border: 1px solid var(--transparent-5-w);
}

.clan-admin-card .clan-settings-section-title {
    margin: 0 0 16px 0;
}

.clan-admin-card small {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.clan-admin-toggle {
    padding: 12px 14px;
    border-radius: var(--br-12);
    background: var(--button);
}

.clan-admin-actions {
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 0 0.3rem;
}

.clan-admin-nav {
    flex-direction: row;
    gap: 6px;
}

.clan-admin-nav button {
    flex: 1 1 auto;
    justify-content: center;
}

.clan-admin-card + .clan-admin-card {
    margin-top: 12px;
}

.clan-admin-other hr {
    margin: 16px 0;
}

.settings_wrapper > .col-md-6 {
    display: flex;
    flex-direction: column;
}

.settings_wrapper > .col-md-6 > .clan-admin-card:last-child {
    flex: 1;
}

.clan-system-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 2px solid var(--button-hover);
}

.clan-system-head .clan-settings-section-title {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 0;
}

.clan-system-head button {
    margin-bottom: 12px;
}

.clan-system-empty {
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.clan-levels-frame {
    margin-top: 12px;
}

.clan-level-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--transparent-5-w);
    font-size: 13px;
}

.clan-level-row:last-child {
    border-bottom: 0;
}

.clan-level-head {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.clan-level-name {
    color: var(--text-default);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.clan-level-exp {
    color: var(--text-default);
}

.clan-level-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.clan-system-fieldset {
    margin-top: 12px;
}

.clan-sidebar-level {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clan-sidebar-level-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.clan-sidebar-level-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-default);
    font-weight: 700;
}

.clan-sidebar-level-name svg {
    width: 14px;
    height: 14px;
    fill: var(--span);
    transform: rotate(-90deg);
}

.clan-sidebar-level-xp {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.clan-sidebar-level-bar {
    height: 6px;
    border-radius: var(--br-6);
    background: var(--button);
    overflow: hidden;
}

.clan-sidebar-level-bar span {
    display: block;
    height: 100%;
    border-radius: var(--br-6);
    background: var(--span);
}

.row_admins > form {
    width: 100%;
}

.clan-level-row {
    grid-template-columns: minmax(100px, 1fr) 150px auto;
    min-width: 580px;
}

.clan-level-head > div {
    white-space: nowrap;
}

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

.clan-feature-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: var(--br-12);
    background: var(--button);
}

.clan-feature-tile .inputs-inline {
    margin: 0;
}

.clan-feature-tile small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.clan-system-features-wrap > .col-md-6 {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

.clan-system-features-wrap {
    padding-top: 0;
    margin-top: 12px;
    margin-bottom: 12px;
}

.clan-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: var(--br-8);
    background: var(--span-10);
    border: 1px solid var(--span-middle);
    color: var(--span);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.clan-soon-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.clan-soon-text {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.clan-soon-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

.clan-sa-frame {
    margin-top: 12px;
}

.clan-sa-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 90px 280px;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--transparent-5-w);
    font-size: 13px;
}

.clan-sa-row:last-child {
    border-bottom: 0;
}

.clan-sa-head {
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.clan-sa-row.is-disabled .clan-sa-item,
.clan-sa-row.is-disabled .clan-sa-type,
.clan-sa-row.is-disabled .clan-sa-price {
    opacity: 0.55;
}

.clan-sa-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.clan-sa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--br-12, 12px);
    background: var(--span-10);
    color: var(--span);
}

.clan-sa-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.clan-sa-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.clan-sa-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-default);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.clan-sa-desc {
    color: var(--text-secondary);
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-sa-type {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-secondary);
}

.clan-sa-type b {
    color: var(--text-default);
    font-weight: 700;
}

.clan-sa-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-default);
    font-weight: 600;
}

.clan-sa-price span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clan-sa-price svg {
    width: 16px;
    height: 16px;
    fill: var(--money);
}

.clan-sa-sort {
    color: var(--text-secondary);
}

.clan-sa-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.clan-sa-prices-wrap,
.clan-sa-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.clan-sa-price-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#shop-item-modal .popup_modal_content {
    min-width: unset !important;
    width: 540px !important;
    max-width: 96vw !important;
    padding: 16px !important;
}

#shop-item-modal hr {
    margin: 8px 0;
}

#shop-item-modal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#shop-item-modal form .inputs-inline {
    margin: 0;
}

#shop-item-modal form > .inputs-inline > label,
#shop-item-modal .clan-sa-label,
#shop-item-modal .clan-sa-form-grid > .inputs-inline > label,
#shop-item-modal .clan-sa-price-field > label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

#shop-item-modal .clan-sa-form-grid > .inputs-inline,
#shop-item-modal .clan-sa-price-field {
    min-width: 0;
}

#shop-item-modal textarea {
    min-height: 72px;
    resize: vertical;
}

#shop-item-modal .card-bottom {
    display: flex;
    gap: 8px;
    margin: 0;
}

#shop-item-modal .card-bottom button {
    flex: 1;
}

.clan-sa-label:has(+ .adaptive-select-wrapper input[required])::after {
    content: " *";
    color: var(--red);
}

.clan-admin-link {
    display: flex;
    align-items: center;
}

.clan-admin-logs-filters {
    margin-top: 12px;
}

.clan-admin-logs-filter-inputs > input[type="number"] {
    width: 180px;
    flex: 0 0 auto;
}

.clan-admin-logs-filter-inputs .adaptive-select-wrapper {
    width: 260px;
    margin-bottom: 0;
}

.clan-admin-logs-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clan-hist-admin {
    grid-template-columns: 52px minmax(240px, 3fr) minmax(130px, 1fr) 124px;
    min-width: 620px;
}

.clan-admin-hist-frame {
    max-height: min(720px, 75vh);
}

#admin-logs-content .clan-history-empty {
    padding: 24px 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.clan-hist-desc .clan-history-item-user {
    padding: 2px 8px;
    background: var(--span-low);
    border-radius: var(--br-8);
    font-size: 12px;
}
.clan-shop-items {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.clan-shop-item {
    --shop-accent: var(--span);
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
        "icon content"
        "actions actions";
    align-items: start;
    padding: 16px;
    border-radius: var(--br-16);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.clan-shop-item[data-item-type="exp"] {
    --shop-accent: var(--green);
}

.clan-shop-item[data-item-type="bank"] {
    --shop-accent: var(--money);
}

.clan-shop-item[data-item-type="lifetime"] {
    --shop-accent: var(--red);
}

.clan-shop-item > .clan-shop-item-icon {
    grid-area: icon;
    border-radius: var(--br-12);
    border: 1px solid color-mix(in srgb, var(--shop-accent) 24%, transparent);
}

.clan-shop-item > .clan-shop-item-icon svg {
    fill: var(--shop-accent);
}

.clan-shop-item > .clan-shop-item-content {
    grid-area: content;
    gap: 6px;
    min-width: 0;
}

.clan-shop-item-name {
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.clan-shop-item-description {
    color: var(--text-secondary);
    line-height: 1.45;
}

.clan-shop-item-info {
    margin-top: 2px;
}

.clan-shop-item-type {
    padding: 3px 10px;
    background: color-mix(in srgb, var(--shop-accent) 14%, transparent);
    border-radius: var(--br-8);
    font-size: 12px;
    font-weight: 700;
    color: var(--shop-accent);
}

.clan-shop-item > .clan-shop-item-actions {
    grid-area: actions;
    margin-top: 0;
    flex-wrap: nowrap;
}

.clan-shop-item-price {
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-default);
}

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

.clan-shop-item-price-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.clan-shop-item-price-separator {
    color: var(--text-secondary);
    font-weight: 400;
}

.clan-shop-item-actions button {
    flex-shrink: 0;
    min-width: 104px;
    justify-content: center;
}

.clan-sa-categories-col {
    margin-bottom: 12px;
}

.clan-sa-cat-row {
    grid-template-columns: minmax(0, 1fr) 110px 110px 280px;
    min-width: 640px;
}

.clan-sa-cat-row .clan-sa-name {
    display: block;
}

.clan-sa-category-badge {
    padding: 2px 8px;
    border-radius: var(--br-8);
    background: var(--span-low);
    color: var(--span);
    font-size: 11px;
    font-weight: 600;
}

.clan-shop-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clan-shop-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clan-shop-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px;
    color: var(--text-default);
    font-size: 16px;
    font-weight: 700;
}

.clan-shop-section-count {
    padding: 1px 8px;
    border-radius: var(--br-8);
    background: var(--button);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.clan-shop-item {
    background: linear-gradient(135deg, color-mix(in srgb, var(--shop-accent) 9%, var(--card)) 0%, var(--card) 70%);
    border-color: color-mix(in srgb, var(--shop-accent) 14%, transparent);
    gap: 14px 14px;
}

.clan-shop-item > .clan-shop-item-icon {
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--shop-accent) 20%, transparent);
    border-color: transparent;
}

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

.clan-shop-item-name {
    font-size: 18px;
    font-weight: 700;
}

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

.clan-shop-item-content:has(.clan-shop-item-description) .clan-shop-item-info {
    display: none;
}

.clan-shop-item > .clan-shop-item-actions {
    padding: 0;
    background: none;
    border-radius: 0;
}

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

.clan-shop-item .clan-shop-item-actions button {
    min-width: 88px;
    padding: 8px 16px;
    border-radius: var(--br-12);
}

.clan-shop-item .clan-shop-item-actions button.active:not(.disabled) {
    background: color-mix(in srgb, var(--shop-accent) 18%, transparent);
    color: var(--shop-accent);
}

.clan-shop-item .clan-shop-item-actions button.active:not(.disabled):hover {
    background: color-mix(in srgb, var(--shop-accent) 30%, transparent);
}

#add_clan2 .popup_modal_content,
#add_clan_step2 .popup_modal_content {
    min-width: unset !important;
    width: 540px !important;
    max-width: 96vw !important;
    padding: 16px !important;
}

#add_clan2 hr,
#add_clan_step2 hr {
    margin: 8px 0;
}

#add_clan2 form,
#add_clan_step2 form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
}

#add_clan2 form .inputs-inline,
#add_clan_step2 form .inputs-inline {
    margin: 0;
    min-width: 0;
}

#add_clan2 .clan-input-label,
#add_clan_step2 .clan-input-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

#add_clan2 .clan-input-counter {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

#add_clan2 .card-bottom,
#add_clan_step2 .card-bottom {
    display: flex;
    gap: 8px;
    margin: 0;
}

#add_clan2 .card-bottom button,
#add_clan_step2 .card-bottom button {
    flex: 1;
}

.clan-create-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 4px;
}

.clan-create-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--br-12);
    background: var(--button);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.clan-create-step b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--span-low);
    color: var(--text-secondary);
    font-size: 12px;
}

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

.clan-create-step.active b {
    background: var(--span);
    color: var(--card);
}

.clan-create-step.done b {
    background: var(--green);
    color: var(--card);
}

.clan-create-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 12px;
}

.clan-create-uploads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.clan-create-uploads .file-upload-container {
    height: 100%;
}

.clan-shop-balance.skeleton--fast,
.clan-shop-item.skeleton--fast {
    background-color: var(--button) !important;
    background-image: none !important;
}

.clan-shop-item.skeleton--fast {
    min-height: 150px;
    border-color: var(--transparent-5-w);
    transform: none;
}

.clan-shop-item.skeleton--fast:hover {
    border-color: var(--transparent-5-w);
    transform: none;
}

.clan-shop-groups.clan-hidden,
.clan-shop-items.clan-hidden {
    display: none;
}

.clan-shop-section-head.skeleton--fast {
    width: 150px;
    min-height: 24px;
    height: 24px;
    background-color: var(--button) !important;
}

.clan-chat-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: var(--br-12);
    background: var(--button);
}

.clan-chat-attachment-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--br-8);
}

.clan-chat-attachment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.clan-chat-attachment-name {
    color: var(--text-default);
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.clan-chat-attachment .button-icon {
    flex-shrink: 0;
}

.clan-chat-form .file-upload-container.has-file label {
    background: var(--span-10);
    color: var(--span);
}

.clan-content-wrapper .skeleton--fast {
    background-color: var(--button) !important;
}

.clan-content-wrapper .clan-mg-head,
.clan-content-wrapper .clan-hist-head {
    background-color: var(--card);
}

.clan-hist-row.skeleton--fast,
.clan-mg-row.skeleton--fast {
    border-radius: 0;
    min-height: 54px;
    border-bottom: 1px solid var(--transparent-5-w);
}

.clan-history-toolbar .clan-members-search.skeleton--fast {
    min-height: var(--input-height);
}

.clan-roles-row.skeleton--fast {
    border-radius: 0;
    min-height: 46px;
}

.clan-info-skel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clan-info-skel-line {
    min-height: 18px;
    height: 18px;
    border-radius: var(--br-8);
}

.clan-info-skel-short {
    width: 60%;
}

.clan-settings-skel-main {
    min-height: 305px;
}

.clan-settings-skel-type {
    min-height: 122px;
}

.clan-settings-skel-images {
    min-height: 256px;
}

.clans-blocks .clan-card.skeleton--fast {
    background-color: var(--button) !important;
    height: 170px;
}

.clan-chat-attachment.clan-hidden,
.clans-pagination.clan-hidden {
    display: none;
}

.clan-page-wrapper,
.clan-content-wrapper,
.clan-chat-container,
.clan-shop-page,
.clan-settings-page,
.clan-members-layout {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1100px) {
    .clans-blocks {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .clan-leaderboard-podium {
        gap: 56px;
    }

    .clan-page-wrapper {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .clan-chat-container {
        grid-template-columns: minmax(0, 1fr) 240px;
    }
}

@media (max-width: 900px) {
    .clans-blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .clan-leaderboard-podium {
        gap: 28px;
    }

    .clan-page-wrapper,
    .clan-page-wrapper:has(> .clan-admin-link) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "side" "tabs" "content";
        grid-template-rows: auto;
    }

    .clan-page-wrapper:has(> .clan-admin-link) {
        grid-template-areas: "top" "side" "tabs" "content";
    }

    .clan-page-wrapper > .clan-sidebar {
        position: static;
    }

    .clan-sidebar-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .clan-page-wrapper > .clan-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

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

    .clan-page-wrapper > .clan-tabs button {
        flex: 0 0 auto;
    }

    .clan-chat-container {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    .clan-chat-content {
        height: min(560px, 70vh);
    }

    .clan-chat-sidebar {
        max-height: 240px;
    }

    .clan-sa-row,
    .clan-level-row {
        min-width: 760px;
    }

    .settings_wrapper {
        flex-direction: column;
    }

    .settings_wrapper > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }
}

@media (max-width: 700px) {
    .clans-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }

    .clans-header-buttons,
    .clans-header-buttons button {
        width: 100%;
    }

    .clan-leaderboard-podium {
        gap: 6px;
    }

    .clan-podium-1 {
        width: 36%;
    }

    .clan-podium-2,
    .clan-podium-3 {
        width: 30%;
        min-height: 0;
        scale: 0.92;
    }

    .clan-podium-item {
        padding: 12px 4px 10px;
    }

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

    .clan-podium-name,
    .clan-podium-3 .clan-podium-name {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .clan-podium-tag,
    .clan-podium-3 .clan-podium-tag {
        font-size: 11px;
        margin-bottom: 6px;
    }

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

    .clan-content-wrapper,
    .clan-page-wrapper > .clan-content-wrapper {
        padding: 10px;
        gap: 14px;
    }

    .clan-settings-actions {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: minmax(0, 1fr);
    }

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

    .clan-settings-section fieldset:has(> .inputs-inline),
    .clan-settings-row,
    .clan-settings-images,
    .clan-feature-grid,
    .clan-soon-preview,
    .clan-sa-form-grid,
    .clan-sa-prices,
    .clan-sa-prices-wrap,
    .clan-create-row,
    .clan-create-uploads {
        grid-template-columns: minmax(0, 1fr);
    }

    .clan-shop-items {
        grid-template-columns: minmax(0, 1fr);
    }

    .clan-shop-toolbar,
    .clan-shop-balances {
        width: 100%;
    }

    .clan-shop-balance {
        flex: 1 1 100%;
    }

    .clan-members-search,
    .clan-history-toolbar .clan-members-search {
        min-width: 0;
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
    }

    .clan-history-filters {
        width: 100%;
    }

    .clan-preview-card,
    .clan-shop-disabled-content {
        width: 100%;
        max-width: 100%;
    }

    .clan-shop-disabled-content {
        padding: 24px 16px;
    }

    .clan-chat-message-image img {
        width: auto;
        max-width: 100%;
    }

    .clan-admin-logs-filter-row,
    .clan-admin-logs-filter-inputs,
    .clan-admin-logs-filter-actions {
        width: 100%;
    }

    .clan-admin-logs-filter-inputs > input[type="number"],
    .clan-admin-logs-filter-inputs .adaptive-select-wrapper,
    .clan-admin-logs-filter-actions button {
        width: 100%;
    }

    .clan-system-head {
        flex-wrap: wrap;
    }

    .popup_modal .popup_modal_content {
        max-width: 96vw;
    }
}

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

    .clan-sidebar-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clan-page-wrapper > .clan-tabs button {
        padding-inline: 10px;
        font-size: 13px;
    }

    .clan-chat-form {
        padding: 8px;
    }

    .clan-chat-content {
        height: min(520px, 68vh);
    }

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

    .clan-shop-item > .clan-shop-item-actions {
        flex-wrap: wrap;
    }

    .clan-sa-row,
    .clan-level-row,
    .clan-hist-admin,
    .clan-hist-row {
        padding-inline: 10px;
    }

    #add_clan2 .popup_modal_content,
    #add_clan_step2 .popup_modal_content,
    #shop-item-modal .popup_modal_content {
        padding: 12px !important;
    }
}

.inputs-inline:has(> input.switch) {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

.inputs-inline:has(> input.switch) > label {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.inputs-inline > label,
.clan-input-label {
    white-space: normal;
    overflow-wrap: anywhere;
}

.inputs-inline .number {
    width: 100%;
    max-width: 100%;
}

.inputs-inline .number input {
    min-width: 0;
}

@media (max-width: 700px) {
    .popup_modal {
        box-sizing: border-box;
        align-items: flex-start;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px 0 calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .popup_modal .popup_modal_content,
    .popup_modal.visible .popup_modal_content {
        margin: auto;
        max-height: none;
        transform: none;
    }
}

#levelModal .popup_modal_content,
#shop-category-modal .popup_modal_content {
    min-width: unset !important;
    width: 500px !important;
    max-width: 96vw !important;
    padding: 16px !important;
}

#levelModal hr,
#shop-category-modal hr {
    margin: 8px 0;
}

#levelModal form,
#shop-category-modal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
}

#levelModal form .inputs-inline,
#shop-category-modal form .inputs-inline {
    margin: 0;
    min-width: 0;
}

#levelModal form .inputs-inline > label,
#shop-category-modal form .inputs-inline > label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

#levelModal .card-bottom,
#shop-category-modal .card-bottom {
    display: flex;
    gap: 8px;
    margin: 0;
}

#levelModal .card-bottom button,
#shop-category-modal .card-bottom button {
    flex: 1;
}

.clan-levels-frame {
    --level-row: 62px;
    --level-head: 40px;
    max-height: calc(var(--level-head) + var(--level-row) * 6 + 2px);
    overflow: auto;
}

.clan-level-row {
    box-sizing: border-box;
    min-height: var(--level-row);
}

.clan-level-head {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: var(--level-head);
    background: var(--card);
}

#assignRoleModal .popup_modal_content {
    min-width: unset !important;
    width: 500px !important;
    max-width: 96vw !important;
    padding: 16px !important;
}

#assignRoleModal hr {
    margin: 8px 0;
}

#assignRoleModal .clan-assign-target {
    margin: 12px 0 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

#assignRoleModal .clan-assign-list {
    margin-bottom: 12px;
    padding-right: 2px;
}

#assignRoleModal .clan-assign-option {
    box-sizing: border-box;
    min-height: 44px;
    text-align: left;
}

#assignRoleModal .clan-assign-option::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
}

#assignRoleModal .card-bottom {
    display: flex;
    gap: 8px;
    margin: 0;
}

#assignRoleModal .card-bottom button {
    flex: 1;
}

#createRoleModal .popup_modal_content,
#editRoleModal .popup_modal_content {
    min-width: unset !important;
    width: 500px !important;
    max-width: 96vw !important;
    padding: 16px !important;
}

#createRoleModal hr,
#editRoleModal hr {
    margin: 8px 0;
}

#createRoleModal form,
#editRoleModal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
}

#createRoleModal form .inputs-inline,
#editRoleModal form .inputs-inline {
    margin: 0;
    min-width: 0;
}

#createRoleModal form .inputs-inline > label,
#editRoleModal form .inputs-inline > label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

#createRoleModal .clan-form-hint,
#editRoleModal .clan-form-hint {
    margin: -6px 0 0;
}

#createRoleModal .clan-form-feedback:empty,
#editRoleModal .clan-form-feedback:empty {
    display: none;
}

#editRoleModal fieldset {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

#editRoleModal fieldset legend {
    margin-bottom: 8px;
    padding: 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

#editRoleModal fieldset .inputs-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#createRoleModal .card-bottom,
#editRoleModal .card-bottom {
    display: flex;
    margin: 0;
}

.clan-sidebar-banner {
    height: 150px;
}

.clan-sidebar-banner .clan-header-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 30%, var(--card) 100%);
}

.clan-sidebar-body {
    gap: 12px;
    padding: 0 16px 16px;
}

.clan-sidebar-avatar {
    width: 88px;
    height: 88px;
    margin-top: -52px;
    border-width: 5px;
    border-radius: var(--br-20, var(--br-16));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.clan-sidebar-name {
    font-size: 22px;
    letter-spacing: -0.2px;
}

.clan-sidebar-tag {
    background: var(--span-10);
    color: var(--span);
}

.clan-sidebar-stats {
    gap: 8px;
}

.clan-sidebar-stat-icon {
    background: var(--span-10);
    color: var(--span);
}

.clan-sidebar-stat:nth-child(-n+2) {
    background: var(--span-low);
}

.clan-sidebar-stat:nth-child(-n+2) .clan-sidebar-stat-value {
    color: var(--span);
}

.clan-sidebar-level {
    padding: 12px;
    border-radius: var(--br-12);
    background: var(--button);
}

.clan-sidebar-level-bar {
    height: 8px;
    background: var(--button-hover);
}

.clan-sidebar-level-bar span {
    background: linear-gradient(90deg, var(--span-low), var(--span));
    background-color: var(--span);
    min-width: 8px;
}

.clan-sidebar-body {
    padding: 0 14px 14px;
}

.clan-sidebar-stat {
    gap: 8px;
    padding: 9px;
}
