:root {
    --navbar: rgba(20, 23, 50, 0.8);
    --border-line: rgba(255, 60, 60, 0.2);
    --owner-gradient: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.85));
    --accent-color: #ff3c3c;
    --accent-color-bright: #ff5252;
    --accent-color-dark: #cc0000;
    --text-color: #ffffff;
    --text-color-secondary: #e0e0e0;
    --hover-transition: all 0.3s ease;
    --online-color: #4CAF50;
    --offline-color: #F44336;
    --away-color: #FFC107;
}

/* Основной блок владельца */
.team-showcase {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--owner-gradient);
    border: 1px solid var(--border-line);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--hover-transition);
    padding-bottom: 20px;
}

.owner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(40, 40, 40, 0.7)), url('/app/modules/module_block_main_site_custom_banners/img/digl.gif') center/cover;
    opacity: 0.2;
    transition: var(--hover-transition);
}

.team-showcase:hover .owner-background {
    opacity: 0.25;
    transform: scale(1.05);
}

.team-showcase:hover {
    box-shadow: 0 8px 30px rgba(255, 60, 60, 0.2);
    transform: translateY(-2px);
}

/* Выделенное сообщение */
.owner-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    background: linear-gradient(90deg, var(--accent-color-dark), rgba(255, 60, 60, 0.3), transparent);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    z-index: 3;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 60, 60, 0.4);
    text-align: center;
    text-transform: uppercase;
}

.owner-section {
    display: flex;
    position: relative;
    padding: 30px 15px 20px;
    z-index: 2;
}

.owner-data {
    display: flex;
    align-items: center;
    z-index: 2;
    position: relative;
}

/* Аватар владельца */
.owner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 60, 60, 0.3);
    transition: var(--hover-transition);
    position: relative;
}

.team-showcase:hover .owner-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 60, 60, 0.5);
}

.owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--navbar);
    z-index: 3;
}

.owner-status-indicator.online {
    background-color: var(--online-color);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.owner-status-indicator.offline {
    background-color: var(--offline-color);
}

.owner-status-indicator.away {
    background-color: var(--away-color);
}

/* Информация о владельце */
.owner-info {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
}

.owner-nickname {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color-bright);
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--hover-transition);
    letter-spacing: 0.5px;
}

.team-showcase:hover .owner-nickname {
    transform: translateX(5px);
    color: var(--accent-color);
}

.owner-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 5px;
}

.owner-realname {
    font-size: 15px;
    color: var(--text-color);
    opacity: 0.95;
    transition: var(--hover-transition);
    font-weight: 500;
}

.owner-discord {
    font-size: 14px;
    color: var(--text-color-secondary);
    opacity: 0.85;
    transition: var(--hover-transition);
    font-style: italic;
}

.team-showcase:hover .owner-realname,
.team-showcase:hover .owner-discord {
    opacity: 1;
}

.owner-status {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(255, 60, 60, 0.1);
    padding: 5px 12px;
    border-radius: 12px;
    display: inline-block;
    transition: var(--hover-transition);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-showcase:hover .owner-status {
    background: rgba(255, 60, 60, 0.2);
    color: var(--accent-color-bright);
}

/* Действия */
.owner-actions {
    position: absolute;
    right: 15px;
    top: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.tooltip-contact {
    position: relative;
    display: inline-block;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-color);
    background: rgba(20, 20, 20, 0.7);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: var(--hover-transition);
}

.contact-button::after {
    content: "";
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: url(/app/modules/module_block_main_servers_monitoring/img/vip.svg) no-repeat 50%/cover;
    right: -30px;
    transition: var(--hover-transition);
}

.contact-button span {
    transition: var(--hover-transition);
}

.contact-button:hover {
    background: rgba(255, 60, 60, 0.2);
    color: var(--accent-color-bright);
}

.contact-button:hover span {
    transform: translateX(-10px);
}

.contact-button:hover::after {
    right: 15px;
}

.tooltip-text {
    visibility: hidden;
    width: 140px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 6px 0;
    border-radius: 8px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.tooltip-contact:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Социальные сети */
.owner-social {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 16px;
    transition: var(--hover-transition);
    opacity: 0.7;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 1;
    color: var(--accent-color-bright);
}

.social-icon.vk:hover {
    background: #4C75A3;
    color: white;
}

.social-icon.telegram:hover {
    background: #0088cc;
    color: white;
}

.social-icon.steam:hover {
    background: #171a21;
    color: white;
}

/* Кнопка раскрытия деталей */
.owner-expand {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color-secondary);
    opacity: 0.7;
    transition: var(--hover-transition);
    z-index: 2;
}

.owner-expand:hover {
    opacity: 1;
    color: var(--accent-color-bright);
}

.owner-expand i {
    transition: var(--hover-transition);
}

.owner-expand.active i {
    transform: rotate(180deg);
}

/* Расширенная информация */
.owner-details-expanded {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 0 0 16px 16px;
    padding: 20px;
    margin-top: -5px;
    display: none;
    border: 1px solid var(--border-line);
    border-top: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.owner-details-expanded.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-height: 300px;
}

.owner-details-expanded h4 {
    color: var(--accent-color-bright);
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.owner-about p, .team-details p {
    color: var(--text-color-secondary);
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.achievement-list {
    display: flex;
    gap: 10px;
}

.achievement {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 60, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 18px;
    transition: var(--hover-transition);
}

.achievement:hover {
    transform: scale(1.1);
    background: rgba(255, 60, 60, 0.2);
    color: var(--accent-color-bright);
}

/* Анимация пульсации для онлайн-статуса */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.owner-status-indicator.online {
    animation: pulse 2s infinite;
}

/* Анимация для выделенного сообщения */
@keyframes highlightPulse {
    0% {
        background: linear-gradient(90deg, var(--accent-color-dark), transparent);
    }
    50% {
        background: linear-gradient(90deg, rgba(255, 60, 60, 0.5), transparent);
    }
    100% {
        background: linear-gradient(90deg, var(--accent-color-dark), transparent);
    }
}

.owner-highlight {
    animation: highlightPulse 3s infinite;
}

/* Новые стили для отображения команды вместе с владельцем */
.team-header {
    text-align: center;
    padding: 25px 20px 15px;
    position: relative;
    z-index: 2;
}

.team-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color-bright);
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-subtitle {
    font-size: 14px;
    color: var(--text-color-secondary);
    margin: 0;
    opacity: 0.9;
}

.team-members-container {
    display: flex;
    flex-wrap: wrap;
    top: 30px;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    padding: 25px 30px 40px;
    z-index: 2;
    position: relative;
}

/* Обновленные стили для команды проекта */
.team-member-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.85), rgba(25, 25, 25, 0.75));
    border-radius: 16px;
    border: 1px solid rgba(255, 60, 60, 0.15);
    width: calc(50% - 15px);
    min-width: 280px;
    max-width: 380px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    flex: 1 1 calc(50% - 15px);
}

.team-member-card.owner {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 60, 60, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(35, 30, 30, 0.9), rgba(30, 25, 25, 0.8));
}

.team-member-card.owner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-bright), var(--accent-color));
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
    animation: ownerBorderGlow 3s ease-in-out infinite;
}

@keyframes ownerBorderGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

.team-member-card.owner::after {
    content: "Владелец проекта";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.team-member-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 60, 60, 0.3), 0 0 20px rgba(255, 60, 60, 0.1);
    border-color: rgba(255, 60, 60, 0.4);
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.9), rgba(30, 30, 30, 0.8));
}

.team-member-card.owner:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 60, 60, 0.4);
}

/* Специальные стили для карточек "Основатель проекта" */
.team-member-card.founder {
    position: relative;
    border: 2px solid rgba(255, 60, 60, 0.4);
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(35, 35, 35, 0.9));
    box-shadow: 0 4px 15px rgba(255, 60, 60, 0.15),
                0 0 1px rgba(255, 60, 60, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 5px;
    z-index: 1;
}

.team-member-card.founder::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(255, 60, 60, 0.3), 
        rgba(255, 60, 60, 0.1), 
        rgba(255, 60, 60, 0.2),
        rgba(255, 60, 60, 0.3));
    background-size: 200% 200%;
    border-radius: 12px;
    z-index: -1;
    opacity: 0.5;
    animation: founderBorderGradient 8s ease infinite;
    pointer-events: none;
}

.team-member-card.founder::after {
    content: "⭐ Основатель проекта";
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.25), rgba(255, 60, 60, 0.15));
    color: rgba(255, 255, 255, 0.95);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    border: 1px solid rgba(255, 60, 60, 0.3);
    box-shadow: 0 2px 8px rgba(255, 60, 60, 0.2);
    transition: all 0.3s ease;
}

/* Анимация градиента границы - более плавная */
@keyframes founderBorderGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Эффект при наведении на карточку основателя */
.team-member-card.founder:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 60, 60, 0.6);
    box-shadow: 0 8px 25px rgba(255, 60, 60, 0.25),
                0 0 2px rgba(255, 60, 60, 0.3);
    z-index: 10;
}

.team-member-card.founder:hover::after {
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.35), rgba(255, 60, 60, 0.25));
    box-shadow: 0 3px 12px rgba(255, 60, 60, 0.3);
    transform: translateY(-1px);
}

/* Анимация аватара основателя - более тонкая */
.team-member-card.founder .team-member-avatar {
    border: 2px solid rgba(255, 60, 60, 0.5);
    box-shadow: 0 2px 12px rgba(255, 60, 60, 0.2),
                inset 0 0 8px rgba(255, 60, 60, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.team-member-card.founder:hover .team-member-avatar {
    border-color: rgba(255, 60, 60, 0.7);
    box-shadow: 0 4px 18px rgba(255, 60, 60, 0.3),
                inset 0 0 12px rgba(255, 60, 60, 0.15);
    transform: scale(1.02);
}

/* Анимация имени основателя - более тонкая */
.team-member-card.founder .team-member-name {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
}

.team-member-card.founder:hover .team-member-name {
    color: var(--accent-color-bright);
    text-shadow: 0 0 8px rgba(255, 60, 60, 0.3);
}

/* Анимация роли основателя - более тонкая */
.team-member-card.founder .team-member-role {
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.15), rgba(255, 60, 60, 0.08));
    border: 1px solid rgba(255, 60, 60, 0.3);
    color: rgba(255, 82, 82, 0.9);
    box-shadow: 0 1px 4px rgba(255, 60, 60, 0.15);
    transition: all 0.3s ease;
}

.team-member-card.founder:hover .team-member-role {
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.2), rgba(255, 60, 60, 0.12));
    box-shadow: 0 2px 6px rgba(255, 60, 60, 0.2);
}

/* Эффект частиц для карточки основателя - более тонкий */
.team-member-card.founder .founder-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    border-radius: 12px;
}

.founder-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 60, 60, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 60, 60, 0.3);
    animation: founderParticleFloat 12s ease-in-out infinite;
    opacity: 0;
}

@keyframes founderParticleFloat {
    0% {
        opacity: 0;
        transform: translateY(100%) translateX(0) scale(0);
    }
    15% {
        opacity: 0.6;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-20%) translateX(15px) scale(1);
    }
}

/* Анимация появления карточки основателя - более плавная */
@keyframes founderCardAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member-card.founder {
    animation: founderCardAppear 0.6s ease-out forwards;
}

/* Эффект свечения для статуса онлайн основателя - более тонкий */
.team-member-card.founder .team-status.online {
    background-color: var(--online-color);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4),
                0 0 4px rgba(76, 175, 80, 0.2);
    animation: founderStatusPulse 3s ease-in-out infinite;
}

@keyframes founderStatusPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.4),
                    0 0 4px rgba(76, 175, 80, 0.2);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 12px rgba(76, 175, 80, 0.6),
                    0 0 6px rgba(76, 175, 80, 0.3);
        opacity: 0.9;
    }
}

/* Стили для модального окна основателя - более тонкие */
.team-modal-content.founder-modal {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(35, 35, 35, 0.95)) !important;
    border: 1px solid rgba(255, 60, 60, 0.3) !important;
    box-shadow: 0 8px 30px rgba(255, 60, 60, 0.15),
                0 0 1px rgba(255, 60, 60, 0.2) !important;
}

.team-modal-content.founder-modal::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, 
        rgba(255, 60, 60, 0.2), 
        rgba(255, 60, 60, 0.1), 
        rgba(255, 60, 60, 0.15),
        rgba(255, 60, 60, 0.2));
    background-size: 200% 200%;
    border-radius: 16px;
    z-index: -1;
    opacity: 0.4;
    animation: founderBorderGradient 10s ease infinite;
}

.team-modal-header.founder-modal-header {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent), 
                url('/app/modules/module_block_main_site_custom_banners/img/digl.gif') center/cover !important;
    border-bottom: 1px solid rgba(255, 60, 60, 0.2) !important;
    position: relative;
}

.team-modal-content.founder-modal .team-modal-avatar {
    border: 2px solid rgba(255, 60, 60, 0.5) !important;
    box-shadow: 0 4px 15px rgba(255, 60, 60, 0.2),
                inset 0 0 10px rgba(255, 60, 60, 0.1) !important;
    transition: all 0.3s ease;
}

.team-modal-content.founder-modal .team-modal-avatar:hover {
    border-color: rgba(255, 60, 60, 0.7) !important;
    box-shadow: 0 6px 20px rgba(255, 60, 60, 0.3),
                inset 0 0 15px rgba(255, 60, 60, 0.15) !important;
}

.team-modal-content.founder-modal .team-modal-title h3 {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
}

.team-modal-content.founder-modal .team-modal-title h3:hover {
    color: var(--accent-color-bright) !important;
    text-shadow: 0 0 8px rgba(255, 60, 60, 0.3) !important;
}

/* Исправление z-index для элементов карточки основателя */
.team-member-card.founder .team-member-header,
.team-member-card.founder .team-member-body {
    position: relative;
    z-index: 2;
}

.team-member-header {
    padding: 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 60, 60, 0.1);
    background: linear-gradient(to bottom, rgba(255, 60, 60, 0.05), transparent);
    position: relative;
}

.team-member-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 60, 60, 0.3);
    transition: all 0.3s ease;
}

.team-member-card:hover .team-member-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(255, 60, 60, 0.5);
}

.team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-info {
    margin-left: 12px;
    overflow: hidden;
}

.team-member-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.team-member-card:hover .team-member-name {
    color: var(--accent-color-bright);
    transform: translateX(3px);
}

.team-member-role {
    font-size: 13px;
    color: var(--accent-color-bright);
    font-weight: 600;
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.15), rgba(255, 60, 60, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(255, 60, 60, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.team-member-card:hover .team-member-role {
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.25), rgba(255, 60, 60, 0.15));
    box-shadow: 0 2px 8px rgba(255, 60, 60, 0.2);
    transform: translateY(-2px);
}

.team-member-body {
    padding: 18px;
    background: rgba(0, 0, 0, 0.2);
}

.team-member-discord {
    font-size: 13px;
    color: var(--text-color-secondary);
    opacity: 0.95;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-member-card:hover .team-member-discord {
    background: rgba(255, 60, 60, 0.08);
    opacity: 1;
}

.team-member-discord i {
    margin-right: 5px;
    color: var(--accent-color);
}

.team-member-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-member-details {
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.15), rgba(255, 60, 60, 0.1));
    color: var(--accent-color-bright);
    border: 1px solid rgba(255, 60, 60, 0.3);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.team-member-details:hover {
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.3), rgba(255, 60, 60, 0.2));
    color: var(--text-color);
    border-color: var(--accent-color);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(255, 60, 60, 0.3);
}

.team-member-details:hover::before {
    left: 100%;
}

.team-member-details i {
    margin-left: 5px;
    font-size: 10px;
}

.team-member-social {
    display: flex;
    gap: 5px;
}

.team-member-social .social-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

/* Стили для статуса онлайн/оффлайн */
.team-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(20, 20, 20, 0.8);
}

.team-status.online {
    background-color: var(--online-color);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.6);
    animation: pulse 2s infinite;
}

.team-status.offline {
    background-color: var(--offline-color);
}

.team-status.away {
    background-color: var(--away-color);
}

/* Стили для модального окна */
.team-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.team-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.9));
    margin: auto;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-line);
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.team-modal.active .team-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.team-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-color-secondary);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--hover-transition);
}

.team-modal-close:hover {
    color: var(--accent-color);
    background: rgba(255, 60, 60, 0.1);
}

.team-modal-header {
    padding: 20px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent), 
                url('/app/modules/module_block_main_site_custom_banners/img/digl.gif') center/cover;
    border-bottom: 1px solid var(--border-line);
}

.team-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(255, 60, 60, 0.4);
}

.team-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-modal-title {
    margin-left: 20px;
}

.team-modal-title h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.team-modal-title span {
    font-size: 14px;
    color: var(--accent-color-bright);
    font-weight: 600;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 60, 60, 0.15);
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-modal-body {
    padding: 20px;
}

.team-modal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-color-secondary);
}

.info-item i {
    margin-right: 8px;
    color: var(--accent-color);
}

.team-modal-description h4,
.team-modal-skills h4 {
    font-size: 16px;
    color: var(--accent-color-bright);
    margin-bottom: 10px;
    font-weight: 600;
}

.team-modal-description p {
    font-size: 14px;
    color: var(--text-color-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    transition: var(--hover-transition);
}

.skill-tag:hover {
    background: rgba(255, 60, 60, 0.2);
    transform: translateY(-2px);
}

.team-modal-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 18px;
    transition: var(--hover-transition);
}

.modal-social-icon:hover {
    transform: translateY(-3px) rotate(10deg);
}

.modal-social-icon.vk:hover {
    background: #4C75A3;
    color: white;
}

.modal-social-icon.telegram:hover {
    background: #0088cc;
    color: white;
}

.modal-social-icon.steam:hover {
    background: #171a21;
    color: white;
}

.modal-social-icon.discord:hover {
    background: #7289DA;
    color: white;
}

.modal-social-icon.github:hover {
    background: #333;
    color: white;
}

/* Эффект волны для кнопок */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Анимации для карточек команды */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Анимация свечения для карточек */
@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 rgba(255, 60, 60, 0);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 60, 60, 0.1);
    }
}

/* Адаптивность для новой структуры */
@media (max-width: 991.98px) {
    .team-member-card {
        width: calc(50% - 15px);
        min-width: 250px;
    }
    
    .team-members-container {
        gap: 20px;
        padding: 20px 20px 35px;
    }
}

@media (max-width: 767.98px) {
    .owner-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .owner-data {
        flex-direction: column;
        align-items: center;
    }
    
    .owner-info {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .owner-actions {
        position: static;
        margin-top: 15px;
    }
    
    .owner-social {
        position: static;
        margin-top: 10px;
        justify-content: center;
    }
    
    .team-member-card {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .team-members-container {
        gap: 20px;
        padding: 20px 15px 35px;
    }
    
    .team-showcase {
        height: auto;
        padding: 10px 0 20px;
    }
    
    .owner-highlight {
        font-size: 12px;
        padding: 5px 10px;
        text-align: center;
    }
    
    .team-modal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .team-modal-avatar {
        margin-bottom: 15px;
    }
    
    .team-modal-title {
        margin-left: 0;
    }
    
    .team-modal-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .owner-nickname {
        font-size: 20px;
    }
    
    .owner-avatar {
        width: 70px;
        height: 70px;
    }
    
    .owner-highlight {
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .owner-details-expanded.active {
        max-height: 400px; /* Увеличиваем максимальную высоту для размещения большего количества контента */
    }
}

/* Мобильная версия */
@media (max-width: 767.98px) {
    /* Основной контейнер команды */
    .team-showcase {
        padding: 15px 10px 30px;
    }
    
    /* Заголовок */
    .owner-highlight {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    /* Контейнер с карточками */
    .team-members-container {
        padding: 20px 15px;
        gap: 20px;
    }
    
    /* Карточки членов команды */
    .team-member-card {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        margin-bottom: 15px;
    }
    
    /* Карточки основателя на мобильных */
    .team-member-card.founder {
        margin: 10px 0;
    }
    
    /* Карточка владельца */
    .team-member-card.owner::after {
        font-size: 9px;
        padding: 2px 6px;
        top: 8px;
        right: 8px;
    }
    
    /* Аватар в карточке */
    .team-member-avatar {
        width: 45px;
        height: 45px;
    }
    
    /* Информация в карточке */
    .team-member-name {
        font-size: 13px;
    }
    
    .team-member-role {
        font-size: 11px;
    }
    
    .team-member-discord {
        font-size: 11px;
    }
    
    /* Кнопки действий */
    .team-member-details {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .team-member-social .social-icon {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    /* Модальное окно */
    .team-modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .team-modal-header {
        flex-direction: column;
        padding: 15px;
    }
    
    .team-modal-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }
    
    .team-modal-title {
        margin-left: 0;
        text-align: center;
    }
    
    .team-modal-title h3 {
        font-size: 18px;
    }
    
    .team-modal-title span {
        font-size: 12px;
    }
    
    .team-modal-body {
        padding: 15px;
    }
    
    .team-modal-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .info-item {
        font-size: 12px;
    }
    
    .team-modal-description h4,
    .team-modal-skills h4 {
        font-size: 14px;
    }
    
    .team-modal-description p {
        font-size: 12px;
    }
    
    .skill-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .modal-social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    /* Кнопка раскрытия деталей */
    .owner-expand {
        bottom: 0;
        height: 25px;
    }
    
    /* Расширенная информация */
    .owner-details-expanded {
        padding: 15px;
    }
    
    .owner-details-expanded h4 {
        font-size: 14px;
    }
    
    .owner-about p, .team-details p {
        font-size: 12px;
    }
}

/* Планшетная версия */
@media (min-width: 768px) and (max-width: 991.98px) {
    .team-member-card {
        width: calc(50% - 20px);
        margin-bottom: 15px;
    }
    
    .team-members-container {
        padding: 15px 20px;
        gap: 20px;
    }
    
    .team-member-card.founder {
        margin: 5px;
    }
    
    .owner-highlight {
        font-size: 15px;
    }
    
    .team-modal-content {
        width: 90%;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 375px) {
    .team-member-header {
        padding: 10px;
    }
    
    .team-member-body {
        padding: 10px;
    }
    
    .team-member-avatar {
        width: 40px;
        height: 40px;
    }
    
    .team-member-name {
        font-size: 12px;
    }
    
    .team-member-role {
        font-size: 10px;
    }
    
    .team-member-discord {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .team-member-details {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .team-member-social .social-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .owner-highlight {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .team-modal-avatar {
        width: 60px;
        height: 60px;
    }
    
    .team-modal-title h3 {
        font-size: 16px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 767.98px) and (orientation: landscape) {
    .team-members-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .team-modal-header {
        flex-direction: row;
        align-items: center;
    }
    
    .team-modal-avatar {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .team-modal-title {
        text-align: left;
    }
}

/* Стили для мобильного отображения команды */
@media (max-width: 767.98px) {
    /* Скрываем контейнер команды по умолчанию */
    .team-members-container {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
    }
    
    /* Показываем контейнер при активации */
    .team-members-container.active {
        max-height: 2000px; /* Достаточно большое значение для любого количества карточек */
        padding: 20px 10px;
        opacity: 1;
    }
    
    /* Стиль для кнопки разворачивания команды */
    .team-toggle-btn {
        display: flex;
        top: 20px;
        align-items: center;
        justify-content: center;
        margin: 15px auto 5px;
        background: rgba(255, 60, 60, 0.1);
        color: var(--accent-color);
        border: 1px solid var(--accent-color);
        border-radius: 12px;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--hover-transition);
        position: relative;
        overflow: hidden;
        z-index: 5;
    }
    
    .team-toggle-btn:hover {
        background: rgba(255, 60, 60, 0.2);
        color: var(--accent-color-bright);
    }
    
    .team-toggle-btn i {
        margin-left: 8px;
        transition: transform 0.3s ease;
    }
    
    .team-toggle-btn.active i {
        transform: rotate(180deg);
    }
    
    /* Скрываем стандартную кнопку раскрытия на мобильных */
    .owner-expand {
        display: none;
    }
}

/* Показываем кнопку только на мобильных */
.team-toggle-btn {
    display: none;
}

@media (max-width: 767.98px) {
    .team-toggle-btn {
        display: flex;
    }
}

/* Developer Terminal Effect */
.team-member-card.developer {
    border: 2px solid #00FF00;
    background: linear-gradient(135deg, #0D1117, #161B22);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.team-member-card.developer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00FF00, #00CC00, #00FF00);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.4;
    animation: developerBorderGlow 3s ease-in-out infinite;
}

@keyframes developerBorderGlow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

.team-member-card.developer::after {
    content: "$ ./developer.sh";
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: monospace;
    color: #00FF00;
    font-size: 12px;
    z-index: 2;
    animation: typingEffect 3s steps(14) infinite;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #00FF00;
    width: 0;
}

@keyframes typingEffect {
    0% { width: 0 }
    50% { width: 14ch }
    80% { width: 14ch }
    100% { width: 0 }
}

.team-member-card.developer .team-member-header,
.team-member-card.developer .team-member-body {
    position: relative;
    z-index: 3;
}

.team-member-card.developer .team-member-avatar {
    border-color: #00FF00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.team-member-card.developer .team-member-name {
    color: #00FF00;
    font-family: 'Courier New', monospace;
}

.team-member-card.developer .team-member-role {
    background: rgba(0, 255, 0, 0.15);
    color: #00FF00;
    font-family: 'Courier New', monospace;
}

.team-member-card.developer .team-member-details {
    border-color: #00FF00;
    color: #00FF00;
    font-family: 'Courier New', monospace;
}

/* Matrix-like background animation */
.team-member-card.developer .matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.team-member-card.developer .matrix-column {
    position: absolute;
    width: 20px;
    top: -100%;
    color: rgba(0, 255, 0, 0.5);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-align: center;
    animation: matrixRain linear infinite;
}

@keyframes matrixRain {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

/* Developer Modal Styling */
.developer-modal-content {
    background: #0D1117 !important;
    border: 1px solid #00FF00 !important;
    color: #E6EDF3;
}

.developer-modal-header {
    background: linear-gradient(to right, #0D1117, transparent), 
                url('/app/modules/module_block_main_site_custom_banners/img/code-pattern.png') center/cover !important;
}

.developer-skill-tag {
    background: rgba(0, 255, 0, 0.1);
    color: #00FF00;
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.developer-skill-tag::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    animation: skillShine 3s infinite;
}

@keyframes skillShine {
    0% { left: -100% }
    50% { left: 100% }
    100% { left: 100% }
}

.developer-code-snippet {
    background: #161B22;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #E6EDF3;
    position: relative;
    overflow: hidden;
}

.developer-code-snippet::before {
    content: "// Sample Code";
    position: absolute;
    top: 5px;
    right: 10px;
    color: #8B949E;
    font-size: 10px;
}

.code-line {
    display: block;
    margin-bottom: 3px;
}

.code-comment { color: #8B949E; }
.code-keyword { color: #FF7B72; }
.code-string { color: #A5D6FF; }
.code-function { color: #D2A8FF; }
.code-variable { color: #FFA657; }

/* Terminal typing effect */
.terminal-container {
    background: #0D1117;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #E6EDF3;
    position: relative;
}

.terminal-header {
    display: flex;
    margin-bottom: 10px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.terminal-button.red { background-color: #FF5F56; }
.terminal-button.yellow { background-color: #FFBD2E; }
.terminal-button.green { background-color: #27C93F; }

.terminal-title {
    flex-grow: 1;
    text-align: center;
    font-size: 11px;
    color: #8B949E;
}

.terminal-content {
    position: relative;
}

.terminal-line {
    display: block;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(40, end);
}

.terminal-prompt {
    color: #00FF00;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #00FF00;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    from, to { opacity: 1 }
    50% { opacity: 0 }
}
