



.clan-no-apps {
    border-radius: 14px !important;
    background: #85858517 !important;
    display: flex !important;
    margin-bottom: 0;
    width: 100%;
    font-weight: 700;
    color: #676767;
    font-size: 11px;
    border: dashed 1px #4b4b4b !important;
    padding: 40px !important;
    align-items: center !important;
    justify-content: center !important;
}
/* --- Контейнер для тумблера --- */
.clan-tag-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    margin-right: 10px;
    height: 38px; /* Чтобы высота совпадала с кнопкой Настройки */
}

.switch-label-text {
    color: #a0a0a0;
    font-size: 13px;
    font-weight: 600;
}

/* --- Сам переключатель --- */
.switch {
position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    cursor: pointer;
    top: 0 !important;
    margin: 0 !important;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border: 1px solid rgba(255,255,255,0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    transition: .4s;
}

input:checked + .slider {
    background-color: #3a9b68; /* Зеленый цвет при включении */
    border-color: #3a9b68;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Закругления */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Стиль для заблокированного ползунка (у участников) */
.switch input:disabled + .slider {
    opacity: 0.4;
    cursor: not-allowed;
}
/* ============================================================
   ПЛАШКА "МАКСИМУМ СЛОТОВ"
   ============================================================ */
.clan-slots-maxed {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(76, 175, 125, 0.1); /* Зеленоватый фон */
    border: 1px solid rgba(76, 175, 125, 0.3); /* Зеленая рамка */
    border-radius: 8px;
    margin: 15px 0;
}

.clan-slots-maxed-icon {
    font-size: 28px;
    color: #4caf7d; /* Зеленая иконка щита */
}

.clan-slots-maxed-text {
    display: flex;
    flex-direction: column;
}

.clan-slots-maxed-title {
    color: #4caf7d;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.clan-slots-maxed-desc {
    color: #a0a0a0;
    font-size: 12px;
}
/* ============================================================
   БЛОК РАСШИРЕНИЯ СЛОТОВ КЛАНА
   ============================================================ */
.clan-slots-content {
    padding: 15px 0;
}

.clan-slots-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #a0a0a0;
}

.clan-slots-header b {
    color: #fff;
}

.clan-slots-header span:last-child b {
    color: #f0b232; /* Желтый акцент для процентов */
}

.clan-slots-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clan-slots-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5a827a, #f0b232); /* Градиент от зеленого к желтому */
    border-radius: 5px;
    transition: width 0.3s ease;
}

.clan-slots-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clan-slots-balance {
    font-size: 12px;
    color: #676767;
}

.clan-slots-balance b {
    color: #fff;
}

.clan-donate-btn {
    padding: 8px 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.clan-donate-icon {
    vertical-align: middle;
    margin-right: 5px;
}

.clan-slots-hint {
    font-size: 11px;
    color: #676767;
    margin-top: 10px;
    text-align: center;
}
.clan-invite-actions {
    display: flex;
    gap: 12px;
    margin-top: 11px;
}
#clan_members {
margin-top: 12px;
}
/* ===== Мета-инфо в шапке клана ===== */
.clan-meta-info {
    display: grid;
    align-items: center;
    gap: 3px;
    margin-top: 10px;
    flex-wrap: wrap;

}
.clan-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.clan-meta-icon {
    font-size: 16px;
}
.clan-meta-icon.crown {
    color: #ffd700;
}
.clan-meta-icon.calendar {
    color: #668782;
}
.clan-meta-label {
    color: #828282;
}
.clan-meta-value {
    color: #fff;
    font-weight: 600;
}
/* Стиль для textarea описания клана (в стиле сайта) */
.clan-description-input {
width: 100%;
    height: auto;
    min-height: 120px;
    display: flex;
    position: relative;
    top: 0;
    right: 0;
    left: 0;
    cursor: text;
    z-index: 2;
    transition: 0.2s;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    background-color: #4f4f4f91;
    border-radius: 11px;
    border: 0;
    padding: 15px;
    outline: none;
    resize: vertical;
    font-family: inherit;
	margin-bottom: 29px;
}
.clan-description-input:focus {
    border-color: #668782 !important;
    box-shadow: 0 0 8px rgba(102, 135, 130, 0.5), inset 0 2px 5px rgba(0,0,0,0.2);
    background-color: #4f4f4fba;
}


.clan-noty-item b {
    color: #c2dfdb !important;
}
.clan-noty-item:hover {
    background: #4e6c67;
    color: #fff;
}
    .clan-noty-item {
        display: block;
        background: #668782;
        color: #c2dfdb;
        font-size: 11px;
        padding: 13px 25px;
font-weight: 600;
    transition: 0.2s;
	cursor: pointer;
    }
    .clan-noty-item i {
        font-size: 14px;
        margin-right: 5px;
        position: relative;
        top: 1px;
    }
    .clan-noty-item b {
        color: #fff;
    }


/* --- Шапка клана (Страница просмотра) --- */
.clan-header {
    /* ВАЖНО: Замени head-2.webp на свою картинку, если нужно */
    background: url('/templates/solution/img/head-2.webp') no-repeat center center; 
    background-size: cover;
    background-color: #222; /* Запасной цвет, если картинка не загрузится */
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.clan-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(20,20,20,0.95) 0%, rgba(20,20,20,0.7) 50%, transparent 100%);
    z-index: 1;
}

.clan-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.clan-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: #222;
    border: 3px solid rgba(255,255,255,0.1);
    object-fit: cover;
}

.clan-info h1 {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Бейджи со статистикой клана --- */
.clan-stats-badge {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.clan-stat-item {
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.clan-stat-item i { 
    font-size: 18px; 
}

/* --- Кнопка выхода из клана --- */
.btn-leave-clan {
    background: linear-gradient(180deg, #ff4d4d 0%, #cc0000 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.btn-leave-clan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.5);
}

/* --- Карточки участников --- */
.member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.member-row:hover {
    background: rgba(255,255,255,0.06);
}