/* ============================================
   СОВРЕМЕННОЕ МЕНЮ КОЛОНИЙ
   Био-дизайн в едином стиле
   ============================================ */

/* Основной контейнер */
.colony-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Главное окно */
.colony-modern-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00ff88;
    border-radius: 0;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3),
                inset 0 0 60px rgba(0, 255, 136, 0.05);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Заголовок */
.colony-modern-header {
    padding: 12px 30px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.colony-modern-title {
    font-size: 26px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
}

.colony-modern-title-icon {
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Навигация - используется общий файл menu-navigation.css */

/* Кнопка закрытия */
.colony-close-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.colony-close-btn:hover {
    background: rgba(255, 107, 107, 0.4);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    transform: scale(1.1);
}

/* Подзаголовок со статистикой */
.colony-modern-subheader {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.05);
}

.colony-modern-stats {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.colony-stat-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 180px;
}

.colony-stat-item:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.colony-stat-content {
    width: 100%;
}

.colony-stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.colony-stat-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.5));
}

.colony-stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.colony-stat-value {
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

/* Контент */
.colony-modern-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Скроллбар */
.colony-modern-content::-webkit-scrollbar {
    width: 8px;
}

.colony-modern-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 136, 0.05);
}

.colony-modern-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 4px;
}

.colony-modern-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Скрываем автоматическую кнопку закрытия */
.colony-modern .close-menu-btn {
    display: none !important;
}

/* ============================================
   СЕКЦИИ
   ============================================ */

.colony-section {
    background: rgba(0, 255, 136, 0.03);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.colony-section-header {
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 255, 136, 0.05) 100%);
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.colony-section-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

.colony-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.colony-section-count {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.colony-section-content {
    padding: 20px;
}

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

.colony-create-section {
    margin-bottom: 30px;
}

.colony-create-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.colony-create-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.colony-create-input:focus {
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    outline: none;
}

.colony-create-input.error {
    border-color: #ff6b6b;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.colony-create-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.colony-create-price {
    color: #ffc107;
    font-size: 16px;
    font-weight: 700;
}

.colony-create-btn {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.colony-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

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

.colony-list-section {
    margin-bottom: 20px;
}

.colony-request-price {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-left: auto;
}

.colony-controls {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.colony-search-input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
}

.colony-search-input:focus {
    border-color: #00ff88;
    outline: none;
}

.colony-sort {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.colony-sort-btn {
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.colony-sort-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
}

.colony-sort-btn.active {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    color: #00ff88;
}

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

.colony-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
}

.colony-filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.colony-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
    padding: 20px;
}

.colony-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

/* Карточка колонии */
.colony-card {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Эффект свечения при hover */
.colony-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.colony-card:hover::before {
    left: 100%;
}

.colony-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4), 0 0 30px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.colony-card-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.colony-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.colony-card-logo-placeholder {
    font-size: 32px;
}

.colony-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.colony-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #00ff88;
    margin: 0;
}

.colony-card-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.colony-card-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.colony-card-stat-icon {
    font-size: 16px;
}

.colony-card-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.colony-card-actions {
    display: flex;
    align-items: center;
}

.colony-card-join-btn {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.colony-card-join-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.colony-card-full {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   АКТИВНАЯ ЗАЯВКА
   ============================================ */

.colony-request-active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.colony-request-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.colony-request-icon {
    font-size: 48px;
}

.colony-request-info {
    flex: 1;
}

.colony-request-info h3 {
    color: #ffc107;
    margin: 0 0 8px 0;
}

.colony-request-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.colony-request-recall-btn {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.colony-request-recall-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.05);
}

/* ============================================
   В КОЛОНИИ
   ============================================ */

.colony-two-columns {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
}

.colony-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Шапка колонии */
.colony-header {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.colony-header-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.colony-header-logo-placeholder {
    font-size: 48px;
}

.colony-header-info {
    flex: 1;
}

.colony-header-title {
    font-size: 24px;
    font-weight: 700;
    color: #00ff88;
    margin: 0 0 10px 0;
}

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

.colony-header-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

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

/* Уникальные стили кнопок с максимальной специфичностью */
/* Переопределяем ВСЕ стили из ui.css button {} */
.colony-modern-container .colony-header-compact button.colony-upload-logo-btn,
.colony-modern-container .colony-header-compact button.colony-leave-btn,
.colony-modern .colony-header-compact button.colony-upload-logo-btn,
.colony-modern .colony-header-compact button.colony-leave-btn {
    /* ПОЛНЫЙ СБРОС всех стилей из ui.css */
    all: unset !important;
    
    /* Восстанавливаем нужные стили */
    display: inline-block !important;
    box-sizing: border-box !important;
    
    /* Размеры и отступы - БЕЗ margin-left: 39px! */
    margin: 0 !important;
    padding: 8px 14px !important;
    width: auto !important;
    min-width: 85px !important;
    max-width: none !important;
    height: auto !important;
    
    /* Оформление */
    border-radius: 6px !important;
    border-width: 2px !important;
    border-style: solid !important;
    
    /* Текст - БЕЗ text-transform: uppercase! */
    font-family: inherit !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    
    /* Поведение */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
    
    /* Позиционирование */
    position: relative !important;
    vertical-align: middle !important;
}

/* Цвета кнопки загрузки лого */
.colony-modern-container .colony-header-compact button.colony-upload-logo-btn,
.colony-modern .colony-header-compact button.colony-upload-logo-btn {
    background: rgba(0, 255, 136, 0.1) !important;
    border-color: rgba(0, 255, 136, 0.3) !important;
    color: #00ff88 !important;
}

.colony-modern-container .colony-header-compact button.colony-upload-logo-btn:hover,
.colony-modern .colony-header-compact button.colony-upload-logo-btn:hover {
    background: rgba(0, 255, 136, 0.2) !important;
    border-color: #00ff88 !important;
    transform: scale(1.05) !important;
}

/* Цвета кнопки выхода */
.colony-modern-container .colony-header-compact button.colony-leave-btn,
.colony-modern .colony-header-compact button.colony-leave-btn {
    background: rgba(255, 107, 107, 0.1) !important;
    border-color: rgba(255, 107, 107, 0.3) !important;
    color: #ff6b6b !important;
}

.colony-modern-container .colony-header-compact button.colony-leave-btn:hover,
.colony-modern .colony-header-compact button.colony-leave-btn:hover {
    background: rgba(255, 107, 107, 0.2) !important;
    border-color: #ff6b6b !important;
    transform: scale(1.05) !important;
}

.colony-upload-logo-input {
    display: none;
}

/* Информация о колонии */
.colony-info-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.colony-info-textarea:focus {
    border-color: #00ff88;
    outline: none;
}

.colony-info-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

/* Участники */
.colony-members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.colony-member-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.colony-member-card:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.4);
}

.colony-member-card.is-me {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

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

.colony-member-name {
    color: #fff;
    font-weight: 600;
}

.colony-member-badge {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.colony-member-stats {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Заявки */
.colony-requests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.colony-request-card-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.colony-request-name {
    color: #fff;
    font-weight: 600;
}

.colony-request-level {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-left: 10px;
}

.colony-request-actions {
    display: flex;
    gap: 8px;
}

.colony-request-accept-btn,
.colony-request-reject-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.colony-request-accept-btn {
    background: #00ff88;
    color: #000;
}

.colony-request-accept-btn:hover {
    background: #00ffaa;
    transform: scale(1.05);
}

.colony-request-reject-btn {
    background: #ff6b6b;
    color: #fff;
}

.colony-request-reject-btn:hover {
    background: #ff8888;
    transform: scale(1.05);
}

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

.colony-chat {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.colony-chat-header {
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 255, 136, 0.05) 100%);
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.colony-chat-icon {
    font-size: 24px;
}

.colony-chat-title {
    font-size: 16px;
    font-weight: 700;
    color: #00ff88;
}

.colony-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.colony-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.colony-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.colony-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

.colony-chat-message {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
}

.colony-chat-message.is-me {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.4);
}

.colony-chat-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.colony-chat-message-author {
    color: #00ff88;
    font-weight: 700;
    font-size: 13px;
}

.colony-chat-message-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.colony-chat-message-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.colony-chat-input-wrapper {
    padding: 15px;
    border-top: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    gap: 10px;
}

.colony-chat-input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.colony-chat-input:focus {
    border-color: #00ff88;
    outline: none;
}

.colony-chat-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border: none;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.colony-chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

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

@media screen and (max-width: 1200px) {
    .colony-two-columns {
        grid-template-columns: 1fr;
    }
    
    .colony-chat {
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .colony-modern-header {
        flex-wrap: wrap;
        padding: 12px 15px;
    }
    
    .colony-list-grid {
        grid-template-columns: 1fr;
    }
    
    .colony-header {
        flex-direction: column;
        text-align: center;
    }
    
    .colony-header-actions {
        width: 100%;
        flex-direction: column;
    }
}

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

/* Состояние ожидания заявки */
.colony-request-pending {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.colony-request-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.colony-request-icon {
    font-size: 64px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.colony-request-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffc107;
    margin: 0;
}

.colony-request-colony {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.colony-request-recall-btn {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.colony-request-recall-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

/* Состояние в колонии */
.colony-in-colony {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.colony-two-column {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
}

.colony-left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.colony-right-panel {
    display: flex;
    flex-direction: column;
}

/* Компактная шапка колонии */
.colony-header-compact {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    overflow: visible !important;
}

.colony-header-compact .holder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.colony-logo-placeholder {
    font-size: 48px;
}

.colony-header-compact .colony-header-info {
    flex: 1;
}

.colony-header-compact .colony-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #00ff88;
    margin: 0 0 8px 0;
}

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

.colony-header-compact .colony-header-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 136, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.colony-header-stat-icon {
    font-size: 16px;
}

.colony-header-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.colony-header-stat-value {
    color: #00ff88;
    font-weight: 700;
    font-size: 13px;
}

.colony-header-compact .colony-header-actions {
    display: flex !important;
    gap: 10px !important;
    flex-direction: row !important;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Участники и заявки */
.colony-member-item,
.colony-request-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.colony-member-item:hover,
.colony-request-item:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.4);
}

.colony-member-info,
.colony-request-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.colony-member-name,
.colony-request-name {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.colony-member-level,
.colony-request-level {
    color: rgba(255, 255, 136, 0.8);
    font-size: 14px;
}

.colony-member-kick-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid rgba(255, 107, 107, 0.4);
    border-radius: 6px;
    color: #ff6b6b;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.colony-member-kick-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
    transform: scale(1.1);
}

.colony-request-actions {
    display: flex;
    gap: 8px;
}

.colony-request-accept-btn,
.colony-request-reject-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
}

.colony-request-accept-btn {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

.colony-request-accept-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    transform: scale(1.1);
}

.colony-request-reject-btn {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.colony-request-reject-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
    transform: scale(1.1);
}

/* Чат колонии */
.colony-chat-panel {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.colony-chat-title {
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 255, 136, 0.05) 100%);
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #00ff88;
}

.colony-chat-messages-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.colony-chat-messages {
    height: 100%;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.colony-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.colony-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.colony-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

.colony-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

.colony-chat-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.colony-chat-message {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.2s ease;
}

.colony-chat-message:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
}

.colony-chat-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.colony-chat-nick {
    color: #00ff88;
    font-weight: 700;
    font-size: 14px;
}

.colony-chat-nick.chat-owner {
    color: #ffd700;
}

.colony-chat-nick.chat-admin {
    color: #ff6b6b;
}

.colony-chat-nick.chat-moderator {
    color: #4fc3f7;
}

.colony-chat-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    word-wrap: break-word;
    flex: 1 1 100%;
}

.colony-chat-input-wrapper {
    padding: 15px;
    border-top: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    gap: 10px;
}

.colony-chat-input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.colony-chat-input:focus {
    border-color: #00ff88;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.colony-chat-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border: none;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.colony-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.colony-chat-send:active {
    transform: scale(0.95);
}

/* ============================================
   АДАПТИВНОСТЬ (ДОПОЛНЕНИЕ)
   ============================================ */

@media screen and (max-width: 1200px) {
    .colony-two-column {
        grid-template-columns: 1fr;
    }
    
    .colony-chat-panel {
        min-height: 400px;
    }
}

@media screen and (max-width: 1024px) {
    .colony-header-compact {
        flex-wrap: wrap;
    }
    
    .colony-header-compact .colony-header-actions {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .colony-header-compact {
        flex-direction: column;
        text-align: center;
    }
    
    .colony-header-compact .colony-header-stats {
        justify-content: center;
    }
    
    .colony-header-compact .colony-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .colony-list-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .colony-card {
        flex-direction: column;
        text-align: center;
    }
    
    .colony-card-logo {
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .colony-modern-header {
        padding: 10px;
    }
    
    .colony-modern-title {
        font-size: 20px;
    }
    
    .colony-close-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .colony-controls {
        padding: 15px;
    }
    
    .colony-sort {
        flex-direction: column;
    }
    
    .colony-sort-btn {
        width: 100%;
    }
}


/* ============================================
   БЫСТРЫЕ УЛУЧШЕНИЯ
   ============================================ */

/* Онлайн индикаторы для участников */
.colony-member-item.online {
    border-color: rgba(0, 255, 136, 0.4) !important;
    background: rgba(0, 255, 136, 0.05) !important;
}

.colony-member-item.offline {
    border-color: rgba(255, 107, 107, 0.2) !important;
    opacity: 0.7;
}

.colony-member-item:hover {
    transform: translateX(5px) !important;
}

.colony-member-online {
    font-size: 12px;
    margin-right: 8px;
    animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Прогресс-бары для статистики */
.colony-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
    position: relative;
}

.colony-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    position: relative;
}

.colony-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Улучшенные hover эффекты для карточек участников */
.colony-member-item,
.colony-request-item {
    position: relative;
    overflow: hidden;
}

.colony-member-item::before,
.colony-request-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.colony-member-item:hover::before,
.colony-request-item:hover::before {
    left: 100%;
}


/* Hover эффекты для карточек статистики в шапке */
.colony-header-stat {
    position: relative;
    overflow: hidden;
}

.colony-header-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.colony-header-stat:hover::before {
    left: 100%;
}

.colony-header-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}


/* ============================================
   НОВАЯ ШАПКА КОЛОНИИ - КАРТОЧНЫЙ СТИЛЬ
   ============================================ */

.colony-header-modern {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Верхняя секция с лого и кнопками */
.colony-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.colony-header-logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.colony-logo-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 136, 0.3);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.colony-logo-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00cc6a, #00ff88);
    border-radius: 12px;
    z-index: -1;
    animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.colony-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.colony-logo-placeholder {
    font-size: 32px;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.colony-header-title-section {
    flex: 1;
}

.colony-header-title-main {
    font-size: 24px;
    font-weight: 700;
    color: #00ff88;
    margin: 0 0 8px 0;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.colony-header-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.colony-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.colony-badge.boss {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.colony-badge.active {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.colony-badge.popular {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.colony-header-actions-section {
    display: flex;
    gap: 12px;
}

/* Карточки статистики */
.colony-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.colony-stat-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.colony-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.colony-stat-card:hover::before {
    left: 100%;
}

.colony-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

/* Цветовое кодирование */
.colony-stat-card.success {
    border-color: rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.colony-stat-card.warning {
    border-color: rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.colony-stat-card.danger {
    border-color: rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.colony-stat-card.online {
    border-color: rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.colony-stat-card-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    flex-shrink: 0;
    animation: icon-pulse 2s ease-in-out infinite;
}

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

.colony-stat-card-content {
    flex: 1;
    min-width: 0;
}

.colony-stat-card-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.colony-stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    margin-bottom: 8px;
}

.colony-stat-card-max {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.colony-stat-card-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    animation: badge-blink 1.5s ease-in-out infinite;
}

@keyframes badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Прогресс-бары в карточках */
.colony-stat-card .colony-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.colony-stat-card .colony-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    border-radius: 2px;
    transition: width 0.8s ease;
    position: relative;
}

.colony-stat-card.success .colony-progress-fill {
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.colony-stat-card.warning .colony-progress-fill {
    background: linear-gradient(90deg, #ffc107, #ffed4e);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.colony-stat-card.danger .colony-progress-fill {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.colony-stat-card.online .colony-progress-fill {
    background: linear-gradient(90deg, #00ff88, #4ecdc4);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

/* Анимация заполнения прогресс-бара */
.colony-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .colony-stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .colony-header-top {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .colony-header-logo-section {
        justify-content: center;
    }
    
    .colony-header-actions-section {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .colony-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .colony-stat-card {
        padding: 12px;
    }
    
    .colony-stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .colony-stat-card-value {
        font-size: 20px;
    }
}


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

/* Кнопка загрузки лого */
.colony-upload-logo-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.05));
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 8px;
    color: #00ff88;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
}

.colony-upload-logo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
    transition: left 0.5s ease;
}

.colony-upload-logo-btn:hover::before {
    left: 100%;
}

.colony-upload-logo-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 255, 136, 0.15));
    border-color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
}

.colony-upload-logo-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
}

/* Кнопка выхода */
.colony-leave-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 107, 107, 0.05));
    border: 2px solid rgba(255, 107, 107, 0.4);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.2);
    position: relative;
    overflow: hidden;
}

.colony-leave-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.3), transparent);
    transition: left 0.5s ease;
}

.colony-leave-btn:hover::before {
    left: 100%;
}

.colony-leave-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(255, 107, 107, 0.15));
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.colony-leave-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

/* Анимация пульсации для кнопки выхода при hover */
@keyframes button-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(255, 107, 107, 0.6); }
}

.colony-leave-btn:hover {
    animation: button-pulse 1.5s ease-in-out infinite;
}

/* Скрытый input для загрузки файла */
.colony-upload-logo-input {
    display: none !important;
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .colony-header-actions-section {
        width: 100%;
        justify-content: center;
    }
    
    .colony-upload-logo-btn,
    .colony-leave-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .colony-header-actions-section {
        flex-direction: column;
        gap: 8px;
    }
    
    .colony-upload-logo-btn,
    .colony-leave-btn {
        width: 100%;
    }
}
