/* ============================================
   COLONY MENU STYLES
   Все стили меню колоний в одном месте
   Версия: 2.0.0 - Полная миграция из newdiz.css
   ============================================ */

/* ===== БАЗОВЫЕ КОНТЕЙНЕРЫ ===== */

.colony.settings-container,
.colony.settings form,
.colony-inner {
    width: 890px;
    margin: 0 auto;
    left: auto;
    margin-bottom: 30px;
    position: relative;
}

.colony-inner {
    position: relative !important;
    margin-top: 0% !important;
    height: auto !important;
    display: block !important;
    clear: both;
    overflow: visible !important;
}

.colony-inner,
.colony-inner h1,
.colony-inner h2 {
    text-align: left;
}

.newdiz .colony-outer {
    margin: 0 auto;
    max-width: 950px;
}

/* ===== КОНТЕЙНЕР СОЗДАНИЯ КОЛОНИИ ===== */

.create-colony {
    padding-bottom: 40px !important;
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
}

.colony.cancel.settings-container {
    position: relative;
}

.colony.cancel.settings-container .button-base {
    background: #252525;
}

.colony.cancel.settings-container .button-base:hover {
    background: #494949;
}

.colony.cancel.settings-container .alias-input {
    width: 630px;
    margin-right: 20px;
    line-height: 267%;
    vertical-align: middle;
    color: #7f7f7f;
}

.colony.cancel.settings-container .alias-input a {
    color: #239c22;
}

.colony.cancel.settings-container .change-alias-btn {
    width: 185px;
}

/* ===== ЛОГОТИП КОЛОНИИ ===== */

.clan-logo {
    background: #080b0c;
    width: 570px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    padding-left: 130px;
    text-align: center;
    display: block;
    clear: both;
}

.clan-logo .holder {
    border-radius: 100px;
    background: #000;
    width: 70px;
    height: 70px;
    padding: 10px;
    margin-right: 25px;
    position: absolute;
    top: 20px;
    left: 20px;
    display: block;
    margin: 0 auto 20px;
}

.clan-logo .holder img {
    width: 100%;
}

.clan-logo:after {
    display: block;
    content: '';
    height: 40px;
    width: 40px;
    background: #080b0c;
    position: absolute;
    right: -16px;
    top: 40px;
    transform: rotate(45deg);
}

.clan-logo h2 {
    font-size: 40px;
    margin-bottom: 0;
    padding-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clan-logo .exit {
    font-size: 16px;
    color: #545454;
}

/* ===== БОЛЬШОЙ ЛОГОТИП КОЛОНИИ (УЛУЧШЕННЫЙ) ===== */

.colony-logo-big {
    width: 150px !important;
    height: 150px !important;
    border-radius: 20px;
    border: 3px solid rgba(46, 204, 113, 0.6);
    box-shadow: 
        0 0 30px rgba(46, 204, 113, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
    display: block !important;
}

.colony-logo-big:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 40px rgba(46, 204, 113, 0.6),
        0 12px 32px rgba(0, 0, 0, 0.4);
}

/* ===== ЗАГОЛОВОК КОЛОНИИ (УЛУЧШЕННЫЙ) ===== */

.colony-title {
    max-width: 370px;
    font-size: 2rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #2ecc71, #27ae60, #1abc9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0 !important;
    display: block !important;
    text-align: center;
    clear: both;
}

/* ===== ПОЛЕ ОПИСАНИЯ КОЛОНИИ ===== */

.colony-info {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 20px !important;
    background: linear-gradient(145deg, rgba(10, 37, 64, 0.6), rgba(26, 79, 111, 0.4)) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #ecf0f1 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(255, 255, 255, 0.1) !important;
    margin: 20px 0 !important;
    float: none !important;
    height: auto !important;
    display: block !important;
    clear: both;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.colony-info:focus {
    outline: none;
    border-color: rgba(46, 204, 113, 0.5) !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(46, 204, 113, 0.2),
        0 0 20px rgba(46, 204, 113, 0.3) !important;
    transform: translateY(-2px);
}

.colony-info::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.colony.settings-container .alias-input {
    margin-right: 20px;
}

/* ===== БОКОВЫЕ ПАНЕЛИ (УЧАСТНИКИ И ЗАЯВКИ) ===== */

.colony-inner .side {
    display: inline-block !important;
    vertical-align: top !important;
    width: 48% !important;
    margin: 10px 1% !important;
    box-sizing: border-box;
    position: relative !important;
}

.colony-inner .side.list {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-block !important;
    vertical-align: top !important;
    width: 48% !important;
    margin: 10px 1% !important;
    box-sizing: border-box;
}

.colony-inner .side.zajavka {
    display: inline-block !important;
    vertical-align: top !important;
    width: 48% !important;
    margin: 10px 1% !important;
    box-sizing: border-box;
    position: relative !important;
}

.colony-inner .side h2,
.colony-inner .side.zajavka h2 {
    color: #00adf1;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.colony-inner ul {
    border: none;
    background: none;
}

.colony-inner li a {
    padding-left: 0;
    padding-right: 0;
}

.colony-inner .zajavka a {
    color: #ffea00;
}

/* ===== СПИСКИ КОЛОНИЙ ===== */

.colony-list,
.colony-list li {
    padding: 0;
    margin: 0;
}

.colony-list {
    width: 300px;
    margin-bottom: 30px;
    border: 1px solid #161718;
    padding: 0px;
    border-radius: 10px;
    background: #080809;
    display: block;
    color: #fff;
    margin-top: 5px;
    display: inline-table;
    margin-right: 17px;
    list-style: none !important;
}

.colony-list:last-child {
    margin-right: 0;
}

.colony-list li {
    list-style: none;
    border-top: 1px solid #1f1f1f;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.colony-list li:first-child {
    border-top: none;
}

.colony-list li:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.colony-list li span {
    display: block;
    padding: 13px 15px;
    min-width: 230px;
    min-height: 20px;
    padding-right: 5px;
    font-size: 14px !important;
}

/* ===== АКТИВНЫЙ ЭЛЕМЕНТ СПИСКА ===== */

.colony-list li.active span {
    color: #239c22;
}

.colony-list li.active .add {
    color: #239c22;
    background: #11260f;
    border: 2px solid #239c22;
    cursor: pointer;
}

.colony-list li.active:hover span {
    color: #ff3232;
}

.colony-list li.active:hover .minus {
    display: block;
    cursor: pointer;
}

.colony-list li.active:hover .plus {
    display: none;
}

.colony-list li.active:hover .add {
    color: #ff3232;
    background: #260f0f;
    border: 2px solid #f81111;
}

/* ===== АВАТАРКА КОЛОНИИ В СПИСКЕ ===== */

.clan-ava {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid rgba(46, 204, 113, 0.5);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
    object-fit: cover;
    margin-right: 15px;
    vertical-align: middle;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 0;
    margin-left: 0;
}

.clan-ava:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}

/* ===== НАЗВАНИЕ КОЛОНИИ В СПИСКЕ ===== */

.clan-title-item {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #ecf0f1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    vertical-align: middle;
    margin-left: 30px;
    position: absolute;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* ===== TOOLTIP ===== */

.colony-tooltip {
    width: 25px;
    right: 10px;
    float: right;
    margin-left: 5px;
    height: 20px;
    vertical-align: middle;
    cursor: help;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(52, 152, 219, 0.5));
}

.colony-tooltip:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.8));
}

/* ===== КНОПКИ ДЕЙСТВИЙ В СПИСКАХ ===== */

.colony-list .add {
    -webkit-border-radius: 500px;
    -moz-border-radius: 500px;
    border-radius: 500px;
    background: #080809;
    width: 20px;
    height: 20px;
    text-align: center;
    float: right;
    border: 2px solid #373737;
    font-size: 21px;
    color: #7f7f7f;
    line-height: 92%;
    cursor: pointer;
}

.colony-list li .add .minus {
    display: none;
}

.colony-list .add span {
    font-size: 21px;
}

.colony-list span:hover .add {
    background: #292929;
    cursor: pointer;
}

/* ===== КНОПКИ ДЕЙСТВИЙ ВНУТРИ КОЛОНИИ ===== */

.colony-inner .plus,
.colony-inner .minus {
    -webkit-border-radius: 500px;
    -moz-border-radius: 500px;
    border-radius: 500px;
    background: #080809;
    width: 20px;
    height: 20px;
    text-align: center;
    float: right;
    border: 2px solid #373737;
    font-size: 21px;
    color: #7f7f7f;
    line-height: 92%;
    margin: 0 2px;
    cursor: pointer;
}

.colony-inner .plus:hover,
.colony-inner .minus:hover {
    opacity: 0.7;
}

/* ===== УЛУЧШЕННЫЕ КНОПКИ ДЕЙСТВИЙ ===== */

.accept-member,
.send-col-request {
    background: linear-gradient(145deg, #2ecc71, #27ae60) !important;
    color: white !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 4px 12px rgba(46, 204, 113, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px !important;
    padding: 0 !important;
}

.accept-member:hover,
.send-col-request:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6) !important;
}

.kick-member,
.reject-col-request {
    background: linear-gradient(145deg, #e74c3c, #c0392b) !important;
    color: white !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 4px 12px rgba(231, 76, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px !important;
    padding: 0 !important;
}

.kick-member:hover,
.reject-col-request:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6) !important;
}

/* ===== СПИСКИ УЧАСТНИКОВ И ЗАЯВОК ===== */

.members-table,
.requests-table {
    padding: 0 !important;
    margin: 10px 0 !important;
    list-style: none !important;
}

.members-table li,
.requests-table li {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    list-style: none;
}

.members-table li:hover,
.requests-table li:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transform: translateX(5px);
}

/* ===== ПОЛЯ СОЗДАНИЯ КОЛОНИИ ===== */

.create-colony-title {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(145deg, rgba(10, 37, 64, 0.6), rgba(26, 79, 111, 0.4)) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #ecf0f1 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(255, 255, 255, 0.1) !important;
    margin: 10px 0 !important;
    float: none !important;
    height: auto !important;
}

.create-colony-title.alias-input {
    width: 670px !important;
}

.create-colony-title:focus {
    outline: none;
    border-color: rgba(46, 204, 113, 0.5) !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(46, 204, 113, 0.2),
        0 0 20px rgba(46, 204, 113, 0.3) !important;
}

.create-colony-title::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Анимация ошибки */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.create-colony-title.error {
    animation: shake 0.5s ease-in-out;
    border-color: #e74c3c !important;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5) !important;
}

/* ===== КНОПКА СОЗДАНИЯ КОЛОНИИ ===== */

.create-colony-btn {
    background: linear-gradient(145deg, #2ecc71, #27ae60) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 4px 12px rgba(46, 204, 113, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease;
    border-radius: 8px !important;
    padding: 10px 25px !important;
    margin: 15px auto !important;
    display: block;
    width: auto !important;
    height: auto !important;
    float: none !important;
}

.create-colony-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6) !important;
    background: linear-gradient(145deg, #27ae60, #2ecc71) !important;
}

/* ===== КНОПКА ЗАГРУЗКИ ЛОГОТИПА ===== */

.upload-logo-btn {
    background: linear-gradient(145deg, #3498db, #2980b9) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 4px 12px rgba(52, 152, 219, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    margin: 10px 5px !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

.upload-logo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6) !important;
}

/* ===== КНОПКА ВЫХОДА ИЗ КОЛОНИИ ===== */

.leave-colony-btn {
    background: linear-gradient(145deg, #e74c3c, #c0392b) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4) !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 10px 5px !important;
    font-weight: bold;
}

.leave-colony-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6) !important;
    border-bottom: none !important;
}

/* ===== СТАТИСТИКА КОЛОНИИ ===== */

.colony-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(46, 204, 113, 0.3);
}

.stat-card.active {
    background: linear-gradient(145deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.1));
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.stat-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stat-card.disabled:hover {
    transform: none;
    box-shadow: none;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-arrow {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.8rem;
    color: #2ecc71;
    transition: transform 0.3s ease;
}

.stat-card.active .stat-arrow {
    transform: rotate(180deg);
}

/* ===== ПОИСК ===== */

.colony-search {
    position: relative;
    margin: 20px auto;
    max-width: 600px;
}

.colony-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #ecf0f1;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.colony-search-input:focus {
    outline: none;
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.colony-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== СОРТИРОВКА ===== */

.colony-sort {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 12px 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ecf0f1;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.sort-btn:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sort-btn.active {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* ===== МЕТА-ИНФОРМАЦИЯ КОЛОНИИ ===== */

.colony-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.colony-members {
    font-size: 0.85rem;
    color: #ecf0f1;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* ===== БЕЙДЖИ ===== */

.colony-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: slideIn 0.3s ease-out;
}

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

.colony-badge.full {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.colony-badge.featured {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.colony-badge.popular {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.colony-badge.new {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* ===== ЦЕНЫ ===== */

.change-alias-price,
.create-colony-price {
    padding-right: inherit;
    color: darkslategray;
    position: absolute;
    margin-top: 60px;
    width: 100%;
    text-align: center;
    left: 0px;
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.create-request-price {
    padding-right: inherit;
    color: darkslategray;
    margin-top: 60px;
    width: 100%;
    text-align: center;
    left: 0px;
    margin-left: 20px;
    display: block;
    color: #f39c12;
    font-size: 0.9rem;
    margin: 10px 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */

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

.colony-list li {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.colony-list li:nth-child(1) { animation-delay: 0.1s; }
.colony-list li:nth-child(2) { animation-delay: 0.2s; }
.colony-list li:nth-child(3) { animation-delay: 0.3s; }
.colony-list li:nth-child(4) { animation-delay: 0.4s; }
.colony-list li:nth-child(5) { animation-delay: 0.5s; }
.colony-list li:nth-child(6) { animation-delay: 0.6s; }
.colony-list li:nth-child(7) { animation-delay: 0.7s; }
.colony-list li:nth-child(8) { animation-delay: 0.8s; }
.colony-list li:nth-child(9) { animation-delay: 0.9s; }
.colony-list li:nth-child(10) { animation-delay: 1s; }

/* ===== МОБИЛЬНЫЕ СТИЛИ ===== */

@media screen and (max-width: 890px) {
    .clan-logo {
        width: 55%;
    }
    
    .upload-logo-btn {
        position: absolute;
        left: 120px;
        top: 35px;
        z-index: 50;
    }
    
    .colony-inner .side.list {
        position: absolute;
        top: 125px;
        left: 320px;
    }
    
    .clan-logo h2 {
        margin-left: 160px;
    }
    
    .colony-info {
        width: 90%;
        margin: unset;
        margin-left: 30px;
    }
    
    .colony.cancel.settings-container .alias-input {
        line-height: 350%;
        min-width: 350px;
        font-size: 14px;
    }
    
    .colony.cancel.settings-container .change-alias-btn {
        width: 100% !important;
    }
    
    .colony-request-title {
        max-width: 90%;
    }
    
    .colony.settings-container,
    .colony.settings form,
    .colony-inner {
        width: 100%;
    }
    
    .colony-list {
        width: 30%;
        margin-left: 10px;
    }
    
    .create-colony-title.alias-input {
        width: 31% !important;
        margin-right: 4% !important;
        width: 100% !important;
    }
    
    .change-alias-price,
    .create-colony-price {
        margin-top: 75px;
    }
}

@media screen and (max-width: 768px) {
    .colony-logo-big {
        width: 100px !important;
        height: 100px !important;
    }
    
    .colony-title {
        font-size: 1.5rem !important;
    }
    
    .clan-ava {
        width: 40px;
        height: 40px;
    }
    
    .side.list,
    .side.zajavka,
    .colony-inner .side.list,
    .colony-inner .side.zajavka {
        width: 100% !important;
        display: block !important;
        position: relative !important;
        left: auto !important;
    }
    
    .colony-inner .side.list {
        position: absolute;
        top: 125px;
        left: 230px !important;
    }
    
    .colony-list li span {
        min-width: 170px;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ ===== */

.colony-req {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
}

.colony-request-title {
    max-width: 65%;
}

.change-alias-container {
    padding-bottom: 40px !important;
}

/* ===== КОНЕЦ ФАЙЛА ===== */


/* ===== УЛУЧШЕННЫЕ КАРТОЧКИ КОЛОНИЙ ===== */

.colony-list li {
    border-left: 4px solid transparent !important;
    position: relative;
    overflow: hidden;
}

.colony-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2ecc71, #27ae60);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.colony-list li:hover {
    transform: translateX(5px) translateY(-2px) !important;
    border-left-color: #2ecc71 !important;
    box-shadow: -5px 0 15px rgba(46, 204, 113, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.colony-list li:hover::before {
    opacity: 1;
}

/* ===== УЛУЧШЕННАЯ ТИПОГРАФИКА ===== */

.colony-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.side h2 {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.clan-title-item {
    font-size: 1rem !important;
    font-weight: 600;
}

/* ===== АНИМАЦИЯ АВАТАРКИ ===== */

.clan-ava:hover {
    transform: rotate(5deg) scale(1.15) !important;
}

/* ===== УЛУЧШЕННЫЕ КНОПКИ ===== */

.accept-member:active,
.kick-member:active,
.send-col-request:active {
    transform: scale(0.9) !important;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ СТАТИСТИКИ ===== */

@media (max-width: 768px) {
    .colony-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .colony-search {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .colony-sort {
        flex-direction: column;
    }
    
    .sort-btn {
        width: 100%;
    }
    
    .colony-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== КОНЕЦ УЛУЧШЕНИЙ ===== */


/* ===== КРИТИЧЕСКИЕ ИСПРАВЛЕНИЯ ПОЗИЦИОНИРОВАНИЯ ===== */

/* Убираем абсолютное позиционирование */
.clan-logo {
    position: relative !important;
    background: transparent !important;
    width: auto !important;
    padding: 20px !important;
    padding-left: 20px !important;
    text-align: center;
    display: block !important;
    clear: both;
    border-radius: 0 !important;
}

.clan-logo::after {
    display: none !important;
}

.clan-logo .holder {
    position: relative !important;
    background: transparent !important;
    width: 150px;
    height: 150px;
    padding: 0 !important;
    margin: 0 auto 20px !important;
    display: block !important;
    border-radius: 100px !important;
    top: auto !important;
    left: auto !important;
}

.clan-logo h2 {
    position: relative !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center;
}

/* Исправляем поле информации */
.colony-info {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px auto !important;
}

/* Контейнер для боковых панелей */
.colony-inner > .side {
    margin-top: 20px !important;
}

/* Убираем конфликтующие стили из newdiz */
@media (max-width: 890px) {
    .colony-inner .side.list {
        position: relative !important;
        top: auto !important;
        left: auto !important;
    }
}

/* ===== КОНЕЦ КРИТИЧЕСКИХ ИСПРАВЛЕНИЙ ===== */


/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ СПИСКОВ ===== */

.side.list,
.side.zajavka {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.side.list.hidden,
.side.zajavka.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    transform: scaleY(0);
}

.side.list:not(.hidden),
.side.zajavka:not(.hidden) {
    max-height: 1000px;
    opacity: 1;
    transform: scaleY(1);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scaleY(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

/* ===== УЛУЧШЕНИЕ ВИЗУАЛА КАРТОЧЕК ===== */

.stat-card.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(52, 152, 219, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.stat-card.clickable:hover::before {
    opacity: 1;
}

/* Подсказка для пользователя */
.stat-card.clickable::after {
    content: 'Нажмите чтобы показать';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card.clickable:hover::after {
    opacity: 1;
}

.stat-card.active::after {
    content: 'Нажмите чтобы скрыть';
}

/* ===== КОНЕЦ ИНТЕРАКТИВНЫХ УЛУЧШЕНИЙ ===== */


/* ===== КОСМЕТИЧЕСКИЕ УЛУЧШЕНИЯ ===== */

/* Кнопка выхода - менее агрессивная */
.leave-colony-btn {
    background: rgba(231, 76, 60, 0.2) !important;
    border: 1px solid rgba(231, 76, 60, 0.5) !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
}

.leave-colony-btn:hover {
    background: rgba(231, 76, 60, 0.3) !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3) !important;
}

/* Статистика - компактнее */
.stat-card {
    padding: 15px !important;
    min-width: 100px !important;
}

.stat-icon {
    font-size: 2rem !important;
    margin-bottom: 8px !important;
}

.stat-value {
    font-size: 1.5rem !important;
}

/* Поле информации - меньше */
.colony-info {
    padding: 12px 20px !important;
    min-height: 50px !important;
}

/* Списки - больше отступ сверху */
.colony-inner > .side {
    margin-top: 30px !important;
}

/* Кнопка загрузки логотипа - меньше */
.upload-logo-btn {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
}

/* Кнопка "Покинуть колонию" - красная кнопка */
.leave-colony-btn {
    background: rgba(231, 76, 60, 0.15) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.4) !important;
}

/* ===== КОНЕЦ КОСМЕТИЧЕСКИХ УЛУЧШЕНИЙ ===== */


/* ===== ФИЛЬТРЫ КОЛОНИЙ ===== */

.colony-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.filter-label:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.filter-label span {
    color: #ecf0f1;
    font-size: 0.9rem;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2ecc71;
}

.filter-label:has(.filter-checkbox:checked) {
    background: linear-gradient(145deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.1));
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

/* ===== УВЕДОМЛЕНИЯ ===== */

.colony-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    padding: 15px 25px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ecf0f1;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 250px;
    max-width: 400px;
}

.colony-notification.show {
    right: 30px;
}

.colony-notification.success {
    border-left: 4px solid #2ecc71;
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.4);
}

.colony-notification.error {
    border-left: 4px solid #e74c3c;
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.4);
}

.colony-notification.info {
    border-left: 4px solid #3498db;
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.4);
}

.colony-notification.warning {
    border-left: 4px solid #f39c12;
    box-shadow: 0 8px 32px rgba(243, 156, 18, 0.4);
}

/* Анимация появления */
@keyframes notificationSlide {
    from {
        right: -400px;
        opacity: 0;
    }
    to {
        right: 30px;
        opacity: 1;
    }
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ФИЛЬТРОВ ===== */

@media (max-width: 768px) {
    .colony-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-label {
        width: 100%;
        justify-content: center;
    }
    
    .colony-notification {
        right: -100%;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    
    .colony-notification.show {
        right: 10px;
    }
}

/* ===== КОНЕЦ ФИЛЬТРОВ И УВЕДОМЛЕНИЙ ===== */


/* ===== КАРТОЧКИ КОЛОНИЙ В СПИСКЕ ===== */

.colony-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.colony-list li {
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.15), rgba(52, 152, 219, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 100px;
}

.colony-list li:hover {
    transform: translateX(5px);
    border-left: 4px solid #2ecc71;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3);
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.25), rgba(52, 152, 219, 0.25));
}

.colony-list li > span {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

/* Аватарка колонии */
.clan-ava {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid rgba(46, 204, 113, 0.5);
    object-fit: cover;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.colony-list li:hover .clan-ava {
    transform: rotate(5deg) scale(1.05);
    border-color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
}

/* Название колонии */
.clan-title-item {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    min-width: 150px;
}

/* Мета информация */
.colony-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 8px;
}

.colony-members {
    font-size: 0.9rem;
    color: #ecf0f1;
    padding: 6px 12px;
    background: rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.5);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Кнопка присоединиться */
.send-col-request {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(46, 204, 113, 0.5);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.send-col-request:hover {
    transform: translateY(-50%) scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
    background: linear-gradient(135deg, #27ae60, #229954);
}

.send-col-request:active {
    transform: translateY(-50%) scale(0.95);
}

/* Иконка информации */
.colony-tooltip {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: help;
    margin-left: auto;
}

.colony-tooltip:hover {
    opacity: 1;
}

/* Адаптивность для карточек */
@media (max-width: 768px) {
    .colony-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        min-height: auto;
    }
    
    .clan-ava {
        width: 50px;
        height: 50px;
    }
    
    .clan-title-item {
        font-size: 1.2rem;
    }
    
    .send-col-request {
        position: static;
        transform: none;
        margin-top: 10px;
        align-self: center;
    }
    
    .send-col-request:hover {
        transform: scale(1.1) rotate(90deg);
    }
}

/* ===== КОНЕЦ КАРТОЧЕК КОЛОНИЙ ===== */


/* ===== УТИЛИТАРНЫЕ КЛАССЫ ===== */

/* Важно: класс hidden для скрытия элементов */
.colony-inner.hidden,
.colony-outer.hidden {
    display: none !important;
}

.hidden {
    display: none !important;
}

/* ===== КОНЕЦ УТИЛИТАРНЫХ КЛАССОВ ===== */


/* ============================================
   COLONY CHAT STYLES
   Стили для чата колонии
   ============================================ */

.colony-chat-section {
    margin: 30px 7% 20px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.colony-chat-section h2 {
    color: #2ecc71;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    text-align: left;
    font-weight: 600;
}

.colony-chat-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
}

.colony-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.colony-chat-message {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid rgba(46, 204, 113, 0.3);
    transition: all 0.2s ease;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.colony-chat-message:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(46, 204, 113, 0.6);
}

.colony-chat-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-right: 8px;
}

.colony-chat-nick {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-right: 6px;
}

/* Цвета ролей в чате колонии */
.colony-chat-nick.chat-owner {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.colony-chat-nick.chat-admin {
    color: #ff9933;
    text-shadow: 0 0 8px rgba(255, 153, 51, 0.5);
}

.colony-chat-nick.chat-moderator {
    color: #2ecc71;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.colony-chat-text {
    color: rgba(255, 255, 255, 0.85);
    word-wrap: break-word;
}

.colony-chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.colony-chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.colony-chat-input:focus {
    border-color: rgba(46, 204, 113, 0.6);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

.colony-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.colony-chat-send {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 8px;
    color: #fff;
    width: 50px;
    height: 42px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.colony-chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.5);
    background: linear-gradient(145deg, #27ae60, #2ecc71);
}

.colony-chat-send:active {
    transform: translateY(0);
}

/* Скроллбар для чата */
.colony-chat-container::-webkit-scrollbar {
    width: 8px;
}

.colony-chat-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.colony-chat-container::-webkit-scrollbar-thumb {
    background: rgba(46, 204, 113, 0.5);
    border-radius: 4px;
}

.colony-chat-container::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 204, 113, 0.7);
}

/* Адаптивность */
@media (max-width: 768px) {
    .colony-chat-section {
        margin: 20px 3%;
        padding: 15px;
    }
    
    .colony-chat-container {
        height: 150px;
    }
    
    .colony-chat-input {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .colony-chat-send {
        width: 45px;
        height: 38px;
    }
}


/* ===== ДВУХКОЛОНОЧНЫЙ LAYOUT ДЛЯ УПРАВЛЕНИЯ КОЛОНИЕЙ ===== */

/* Компактная шапка колонии */
.colony-header-compact {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.colony-header-logo {
    flex-shrink: 0;
}

.colony-header-logo .holder {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(46, 204, 113, 0.6);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

.colony-header-logo .colony-logo-big {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.colony-header-info {
    flex: 1;
    min-width: 0;
}

.colony-header-title {
    font-size: 1.8rem !important;
    font-weight: 700;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.colony-header-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.colony-header-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ecf0f1;
}

.colony-header-stat-icon {
    font-size: 1.2rem;
}

.colony-header-stat-value {
    font-weight: 600;
    color: #2ecc71;
}

.colony-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Двухколоночный контейнер */
.colony-two-column {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Левая колонка (информация, участники, заявки) */
.colony-left-panel {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Правая колонка (чат) */
.colony-right-panel {
    flex: 1;
    min-height: 500px;
}

/* Секции левой панели */
.colony-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.colony-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2ecc71;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.colony-section-title-icon {
    font-size: 1.3rem;
}

/* Информация о колонии */
.colony-info-display {
    color: #ecf0f1;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    min-height: 60px;
}

.colony-info-display.empty {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Компактный список участников */
.colony-members-compact {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.colony-members-compact::-webkit-scrollbar {
    width: 6px;
}

.colony-members-compact::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.colony-members-compact::-webkit-scrollbar-thumb {
    background: rgba(46, 204, 113, 0.5);
    border-radius: 3px;
}

.colony-members-compact::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 204, 113, 0.7);
}

.colony-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.colony-member-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.colony-member-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.colony-member-name {
    font-weight: 500;
    color: #ecf0f1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.colony-member-role {
    font-size: 0.8rem;
    color: #95a5a6;
}

.colony-member-actions {
    display: flex;
    gap: 5px;
}

/* Чат в правой панели */
.colony-chat-panel {
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.colony-chat-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2ecc71;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.colony-chat-messages-wrapper {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.colony-chat-input-wrapper {
    display: flex;
    gap: 10px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .colony-two-column {
        flex-direction: column;
    }
    
    .colony-left-panel {
        flex: 1;
        width: 100%;
    }
    
    .colony-right-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .colony-header-compact {
        flex-direction: column;
        text-align: center;
    }
    
    .colony-header-stats {
        justify-content: center;
    }
    
    .colony-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .colony-header-actions button {
        width: 100%;
    }
}

/* ===== КОНЕЦ ДВУХКОЛОНОЧНОГО LAYOUT ===== */


/* ===== УЛУЧШЕННАЯ ШАПКА КОЛОНИИ ===== */

.colony-header-compact {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 25px;
    align-items: start;
    padding: 25px;
}

.colony-header-logo .holder {
    width: 100px !important;
    height: 100px !important;
    border-radius: 15px !important;
    border: 3px solid rgba(46, 204, 113, 0.6);
    box-shadow: 
        0 0 25px rgba(46, 204, 113, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.colony-header-logo .holder:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 
        0 0 35px rgba(46, 204, 113, 0.6),
        0 12px 24px rgba(0, 0, 0, 0.4);
}

.colony-header-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.colony-header-title {
    font-size: 2rem !important;
    margin: 0 !important;
}

.colony-header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.colony-header-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.colony-header-stat:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.colony-header-stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.5));
}

.colony-header-stat-label {
    font-size: 0.75rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.colony-header-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2ecc71;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.colony-header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.colony-header-actions button,
.colony-header-actions a {
    width: 100%;
    padding: 12px 20px !important;
    text-align: center;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Убираем стрелочки и подсказки */
.stat-arrow {
    display: none !important;
}

.stat-card.clickable::after {
    display: none !important;
}

.stat-card.clickable {
    cursor: default !important;
}

/* Адаптивность для шапки */
@media (max-width: 1024px) {
    .colony-header-compact {
        grid-template-columns: 100px 1fr;
        gap: 20px;
    }
    
    .colony-header-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        min-width: auto;
    }
    
    .colony-header-actions button,
    .colony-header-actions a {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .colony-header-compact {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .colony-header-logo {
        margin: 0 auto;
    }
    
    .colony-header-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .colony-header-actions {
        flex-direction: column;
    }
}

/* ===== КОНЕЦ УЛУЧШЕННОЙ ШАПКИ ===== */


/* ===== КОМПАКТНЫЕ УЛУЧШЕНИЯ ===== */

/* Кнопки в шапке - вертикально, компактно */
.colony-header-actions {
    gap: 8px;
    min-width: 180px;
}

.colony-header-actions button,
.colony-header-actions a {
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

/* Компактные карточки участников */
.colony-member-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
}

.colony-member-name {
    font-size: 0.9rem;
}

.colony-member-role {
    font-size: 0.75rem;
}

/* Кнопки действий участников - меньше */
.accept-member,
.send-col-request,
.kick-member,
.reject-col-request {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
    margin-left: 6px !important;
}

/* Компактный список участников */
.colony-members-compact {
    max-height: 350px;
}

/* Секции левой панели - меньше отступы */
.colony-section {
    padding: 15px;
}

.colony-section-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Список участников - убираем лишние стили */
.members-table li,
.requests-table li {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.members-table li:hover,
.requests-table li:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Убираем старые стили которые конфликтуют */
.colony-list li {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.colony-list li:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===== КОНЕЦ КОМПАКТНЫХ УЛУЧШЕНИЙ ===== */


/* ===== ИСПРАВЛЕНИЕ КНОПОК В ШАПКЕ ===== */

.colony-header-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-width: 180px !important;
    align-items: stretch !important;
}

.colony-header-actions .upload-logo-btn,
.colony-header-actions .leave-colony-btn {
    width: 100% !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    margin: 0 !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
}

.colony-header-actions .upload-logo-btn {
    order: 1;
}

.colony-header-actions .leave-colony-btn {
    order: 2;
}

.colony-header-actions .upload-logo {
    display: none !important;
}

/* ===== КОНЕЦ ИСПРАВЛЕНИЯ КНОПОК ===== */


/* ===== ФИКС ПОЗИЦИИ КНОПОК ===== */

.colony-header-compact {
    display: grid !important;
    grid-template-columns: 120px 1fr 180px !important;
    gap: 25px !important;
    align-items: start !important;
    padding: 25px !important;
}

.colony-header-actions {
    justify-self: end !important;
    width: 180px !important;
}

/* ===== КОНЕЦ ФИКСА ===== */


/* ===== КРИТИЧЕСКИЙ ФИКС КНОПОК (перебиваем newdiz.css) ===== */

.colony-header-actions .upload-logo-btn {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* ===== КОНЕЦ КРИТИЧЕСКОГО ФИКСА ===== */


/* ===== СТИЛЬНЫЕ КОМПАКТНЫЕ КАРТОЧКИ УЧАСТНИКОВ ===== */

.colony-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px !important;
    margin-bottom: 4px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: none !important;
    border-left: 3px solid rgba(46, 204, 113, 0.3) !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    min-height: 40px;
}

.colony-member-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-left-color: rgba(46, 204, 113, 0.8) !important;
    transform: translateX(3px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.colony-member-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.colony-member-name {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #ecf0f1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.colony-member-role {
    font-size: 0.7rem !important;
    color: #7f8c8d !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.colony-member-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Убираем старые стили списков */
.members-table,
.requests-table {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.members-table li,
.requests-table li {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    list-style: none !important;
}

/* Секция участников */
.colony-section {
    padding: 15px !important;
}

.colony-members-compact {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Кастомный скроллбар */
.colony-members-compact::-webkit-scrollbar {
    width: 5px;
}

.colony-members-compact::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.colony-members-compact::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.6), rgba(46, 204, 113, 0.4));
    border-radius: 3px;
}

.colony-members-compact::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.8), rgba(46, 204, 113, 0.6));
}

/* ===== КОНЕЦ СТИЛЬНЫХ КАРТОЧЕК ===== */
