/* =========================================================
   SUPP SQUAD — БРАТВА (PROFILES & SQUAD SOCIAL NETWORK)
   Премиальный чистый дизайн в стиле Discord и современных био-профилей
   ========================================================= */

/* ГЛОБАЛЬНЫЙ СБРОС И ТИПОГРАФИКА */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body {
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---------------------------------------------------------
   НАВБАР
   --------------------------------------------------------- */
.navbar {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    max-width: 1360px;
    margin: 0 auto;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-radius: 28px;
    background: rgba(18, 22, 28, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.nav-left img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: contain;
    border-radius: 10px;
}

.nav-left span {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

@media(min-width: 901px) {
    .nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 28px;
        z-index: 2;
    }
}

.nav-center a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    position: relative;
    padding: 6px 2px;
}

.nav-center a:hover,
.nav-center a.active {
    color: #fff;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color, #6db26f);
    box-shadow: 0 0 10px var(--accent-glow, rgba(109, 178, 111, 0.7));
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-center a:hover::after,
.nav-center a.active::after {
    width: 100%;
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

@media(max-width: 900px) {
    .navbar {
        height: 68px;
        top: 14px;
        left: 14px;
        right: 14px;
        padding: 0 16px;
    }
    .nav-center {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(18, 22, 28, 0.96);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 20px;
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        z-index: 200;
    }
    .nav-center.active {
        display: flex;
    }
}

/* ---------------------------------------------------------
   ГЛАВНЫЙ БЛОК (HERO & LIVE STATS)
   --------------------------------------------------------- */
.squad-hero {
    text-align: center;
    padding: 135px 20px 25px;
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
}

.squad-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.squad-title {
    font-size: clamp(36px, 5.5vw, 54px);
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-color, #6db26f) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.8px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.squad-subtitle {
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto 24px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ПЛАШКА ЖИВОЙ СТАТИСТИКИ СКВАДА */
.squad-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.squad-stat-chip {
    background: rgba(18, 22, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.squad-stat-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
}

.squad-stat-chip b {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.squad-discord-link-chip {
    background: rgba(88, 101, 242, 0.22);
    border: 1px solid rgba(88, 101, 242, 0.55);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.squad-discord-link-chip:hover {
    background: rgba(88, 101, 242, 0.45);
    border-color: #5865f2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

/* ---------------------------------------------------------
   ПАНЕЛЬ УПРАВЛЕНИЯ (ПОИСК И ФИЛЬТРЫ)
   --------------------------------------------------------- */
.squad-controls-card {
    max-width: 1240px;
    margin: 0 auto 32px;
    background: rgba(18, 22, 28, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 16px 22px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 10;
}

.squad-search-wrap {
    flex: 1;
    min-width: 270px;
    position: relative;
}

.squad-search-wrap input {
    width: 100%;
    height: 46px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0 42px 0 42px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}

.squad-search-wrap input:focus {
    border-color: var(--accent-color, #6db26f);
    box-shadow: 0 0 18px var(--accent-glow, rgba(109, 178, 111, 0.35));
    background: rgba(0, 0, 0, 0.65);
}

.squad-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.6;
    pointer-events: none;
}

.squad-search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    display: none;
    padding: 4px;
    transition: color 0.15s ease;
}

.squad-search-clear-btn:hover {
    color: #fff;
}

.squad-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.squad-filter-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    padding: 9px 15px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.squad-filter-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: translateY(-1px);
}

.squad-filter-btn.active {
    background: var(--accent-color, #6db26f);
    border-color: var(--accent-color, #6db26f);
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 18px var(--accent-glow, rgba(109, 178, 111, 0.45));
}

.squad-edit-my-profile-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ff9f43 100%);
    color: #000;
    border: none;
    padding: 11px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.squad-edit-my-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.55);
    filter: brightness(1.08);
}

/* ---------------------------------------------------------
   СЕТКА КАРТОЧЕК УЧАСТНИКОВ
   --------------------------------------------------------- */
.squad-grid-container {
    max-width: 1240px;
    margin: 0 auto 90px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.squad-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* КАРТОЧКА УЧАСТНИКА */
.member-card {
    background: rgba(18, 22, 28, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px var(--accent-glow, rgba(109, 178, 111, 0.25));
}

/* ШАПКА КАРТОЧКИ (БАННЕР) */
.member-banner {
    height: 110px;
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-size: cover;
    background-position: center;
}

.member-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(18, 22, 28, 0.95) 100%);
}

.member-respect-pill {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
    color: #ffd700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.member-respect-pill:hover {
    transform: scale(1.08);
    background: rgba(255, 215, 0, 0.25);
    border-color: #ffd700;
}

/* ТЕЛО КАРТОЧКИ */
.member-body {
    padding: 0 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.member-avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -50px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.member-avatar-frame {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    position: relative;
    padding: 4px;
    background: #12161c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.member-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1c212a;
}

/* РАМКИ АВАТАРОВ */
.frame-none { border: 2px solid rgba(255, 255, 255, 0.16); }
.frame-gold { border: 2px solid #ffd700; box-shadow: 0 0 18px rgba(255, 215, 0, 0.5); }
.frame-emerald { border: 2px solid #2ed573; box-shadow: 0 0 18px rgba(46, 213, 115, 0.5); }
.frame-neon { border: 2px solid #00d2d3; box-shadow: 0 0 18px rgba(0, 210, 211, 0.5); }
.frame-cosmic { border: 2px solid #a55eea; box-shadow: 0 0 18px rgba(165, 94, 234, 0.5); }
.frame-fire { border: 2px solid #ff4757; box-shadow: 0 0 18px rgba(255, 71, 87, 0.5); }

/* ИНДИКАТОР ОНЛАЙНА */
.member-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3.5px solid #12161c;
}

.status-online { background: #2ed573; box-shadow: 0 0 10px #2ed573; }
.status-idle { background: #ffa502; box-shadow: 0 0 8px #ffa502; }
.status-dnd { background: #ff4757; box-shadow: 0 0 8px #ff4757; }
.status-offline { background: #57606f; }

/* ИНФОРМАЦИЯ О ПОЛЬЗОВАТЕЛЕ */
.member-header-info {
    margin-bottom: 12px;
}

.member-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.member-display-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.4px;
}

.member-discord-tag {
    font-size: 13px;
    opacity: 0.55;
    font-weight: 500;
}

/* БЕЙДЖИ РОЛЕЙ */
.role-badge {
    padding: 3px 9px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
}

.badge-owner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.22) 0%, rgba(255, 159, 67, 0.22) 100%);
    border: 1px solid rgba(255, 215, 0, 0.6);
    color: #ffd700;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.25);
}

.badge-squad {
    background: rgba(109, 178, 111, 0.2);
    border: 1px solid rgba(109, 178, 111, 0.5);
    color: #8be08d;
}

/* АКТИВНОСТЬ В ИГРЕ (RICH PRESENCE) */
.member-activity-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.member-activity-icon {
    font-size: 14px;
}

/* ТЕКСТ О СЕБЕ / СТАТУС */
.member-bio-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ИНТЕРАКТИВНЫЙ МИНИ-ТРЕК НА КАРТОЧКЕ */
.member-track-card-pill {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 8px 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.member-track-card-pill:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.card-audio-play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.card-audio-play-btn:hover {
    transform: scale(1.1);
    background: #ffd700;
}

.card-audio-play-btn.playing {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.card-audio-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.card-audio-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.card-audio-bar {
    width: 2.5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    height: 4px;
    transition: height 0.15s ease;
}

.card-audio-play-btn.playing ~ .card-audio-bars .card-audio-bar:nth-child(1) { animation: barBounce 0.7s infinite alternate; }
.card-audio-play-btn.playing ~ .card-audio-bars .card-audio-bar:nth-child(2) { animation: barBounce 0.9s infinite alternate 0.15s; }
.card-audio-play-btn.playing ~ .card-audio-bars .card-audio-bar:nth-child(3) { animation: barBounce 0.6s infinite alternate 0.3s; }

/* ВИТРИНА ЛЮБИМОГО МЕМА НА КАРТОЧКЕ */
.member-showcase-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 8px 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.member-showcase-box:hover {
    border-color: rgba(255, 215, 0, 0.4);
}

.member-showcase-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.member-showcase-info {
    flex: 1;
    overflow: hidden;
}

.member-showcase-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffd700;
    font-weight: 800;
    margin-bottom: 2px;
}

.member-showcase-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* КНОПКИ ДЕЙСТВИЯ */
.member-actions-row {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.member-view-btn {
    flex: 1;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 13px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.member-view-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
    transform: translateY(-1px);
}

.member-give-respect-btn {
    height: 42px;
    padding: 0 16px;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.35);
    border-radius: 13px;
    color: #ff6b81;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.member-give-respect-btn:hover {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.45);
    transform: translateY(-1px);
}

.member-give-respect-btn.respected {
    background: rgba(46, 213, 115, 0.18);
    border-color: #2ed573;
    color: #2ed573;
}

/* ---------------------------------------------------------
   МОДАЛЬНОЕ ОКНО ПРОФИЛЯ (ПОЛНЫЙ ВИД)
   --------------------------------------------------------- */
.profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.profile-modal.active {
    display: flex;
    opacity: 1;
}

.profile-modal-box {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    background: #14181f;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #fff;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.profile-modal-banner {
    height: 150px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.profile-modal-close:hover {
    background: rgba(255, 71, 87, 0.85);
    transform: rotate(90deg);
}

.profile-modal-content {
    padding: 0 28px 28px;
    position: relative;
}

.profile-modal-avatar-frame {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-top: -50px;
    margin-bottom: 16px;
    background: #14181f;
    padding: 5px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

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

.profile-modal-names {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-modal-username {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.profile-social-icons {
    display: flex;
    gap: 8px;
}

.profile-social-btn {
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.profile-social-btn:hover {
    background: var(--accent-color, #6db26f);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow, rgba(109, 178, 111, 0.4));
}

/* АУДИОПЛЕЕР ПРОФИЛЯ */
.profile-audio-player-card {
    background: rgba(10, 13, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 18px;
}

.profile-audio-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

.profile-audio-play-btn:hover {
    transform: scale(1.08);
    background: #f0f0f0;
}

.profile-audio-play-btn.playing {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
}

.profile-audio-info {
    flex: 1;
    min-width: 0;
}

.profile-audio-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-audio-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.profile-audio-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    padding-right: 4px;
}

.profile-audio-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    height: 6px;
    transition: height 0.2s ease;
}

.profile-audio-play-btn.playing ~ .profile-audio-bars .profile-audio-bar:nth-child(1) { animation: barBounce 0.8s infinite alternate; }
.profile-audio-play-btn.playing ~ .profile-audio-bars .profile-audio-bar:nth-child(2) { animation: barBounce 0.7s infinite alternate 0.15s; }
.profile-audio-play-btn.playing ~ .profile-audio-bars .profile-audio-bar:nth-child(3) { animation: barBounce 0.9s infinite alternate 0.3s; }
.profile-audio-play-btn.playing ~ .profile-audio-bars .profile-audio-bar:nth-child(4) { animation: barBounce 0.6s infinite alternate 0.2s; }

@keyframes barBounce {
    0% { height: 4px; background: rgba(255, 215, 0, 0.5); }
    100% { height: 18px; background: #ffd700; }
}

/* СТЕНА РЕСПЕКТОВ */
.profile-wall-section {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
}

.profile-wall-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-wall-form {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.profile-wall-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    outline: none;
    height: 44px;
}

.profile-wall-input:focus {
    border-color: var(--accent-color, #6db26f);
    background: rgba(0, 0, 0, 0.6);
}

.profile-wall-submit-btn {
    background: var(--accent-color, #6db26f);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-wall-submit-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.profile-wall-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.profile-wall-post {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.wall-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wall-post-content {
    flex: 1;
}

.wall-post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.wall-author-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffd700;
}

.wall-post-date {
    font-size: 11px;
    opacity: 0.5;
}

.wall-post-text {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
    word-break: break-word;
}

.wall-reactions-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    align-items: center;
}

.wall-react-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.wall-react-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.wall-react-btn.reacted {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    color: #ffd700;
}

.wall-add-react-dropdown {
    display: inline-flex;
    gap: 4px;
    opacity: 0.7;
    margin-left: 2px;
}

.wall-quick-emoji {
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 6px;
    transition: transform 0.15s ease;
}

.wall-quick-emoji:hover {
    transform: scale(1.25);
}

/* ---------------------------------------------------------
   МОДАЛЬНОЕ ОКНО НАСТРОЙКИ ПРОФИЛЯ
   --------------------------------------------------------- */
.edit-field-group {
    margin-bottom: 18px;
}

.edit-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    opacity: 0.92;
}

.edit-field-input, .edit-field-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.edit-field-input:focus, .edit-field-textarea:focus {
    border-color: #ffd700;
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* ПРЕВЬЮ КАРТОЧКИ В РЕДАКТОРЕ */
.edit-live-preview-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 22px;
}

.edit-live-preview-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 12px;
}

/* ВЫБОР РАМКИ */
.frames-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
}

.frame-pick-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.frame-pick-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.frame-pick-card.active {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.18);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.frame-pick-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 6px;
    background: #1c212a;
}

/* ЦВЕТА ШАПКИ */
.colors-picker-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.color-swatch-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.color-swatch-btn:hover {
    transform: scale(1.15);
}

.color-swatch-btn.active {
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------
   МОДАЛЬНОЕ ОКНО ВЫБОРА МЕМА (ВИЗУАЛЬНАЯ ГАЛЕРЕЯ)
   --------------------------------------------------------- */
.meme-picker-modal-box {
    max-width: 780px !important;
}

.meme-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 6px;
}

.meme-picker-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.meme-picker-item:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffd700;
    transform: translateY(-3px);
}

.meme-picker-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
    margin-bottom: 6px;
}

.meme-picker-item-title {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.9);
}

/* ---------------------------------------------------------
   АДАПТИВНОСТЬ
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .squad-members-grid {
        grid-template-columns: 1fr;
    }
    .squad-controls-card {
        flex-direction: column;
        align-items: stretch;
    }
    .squad-filter-tabs {
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }
}
