/* ============================================
   /assets/css/profile.css — ПОЛНЫЕ СТИЛИ ПРОФИЛЯ
   ============================================ */

/* === БАЗОВЫЕ СТИЛИ (как у вас) === */
    .profile-info-card { background: var(--color-bg-primary); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); position: relative; }
    .profile-online-badge { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; gap: 6px; background: #4caf50; padding: 4px 12px; border-radius: 20px; }
    .profile-online-badge.offline { background: #9e9e9e; }
    .profile-online-dot { width: 8px; height: 8px; background: #ffffff; border-radius: 50%; }
    .profile-online-text { font-size: 13px; color: #ffffff; font-weight: 500; }
    .profile-name { font-size: 24px; font-weight: 700; margin-bottom: 8px; padding-right: 120px; }
    .profile-location { font-size: 14px; color: var(--color-text-tertiary); margin-bottom: 16px; }
    .profile-details { font-size: 14px; line-height: 2.2; color: var(--color-text-secondary); word-break: break-word; overflow-wrap: break-word; }
    .profile-menu-card { background: var(--color-bg-primary); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); }
    .profile-menu-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--color-text-primary); }
    .profile-menu-nav { display: flex; flex-direction: column; gap: 2px; }
    .profile-menu-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--color-text-secondary); font-size: 14px; transition: background 0.2s; }
    .profile-menu-link:hover { background: var(--color-bg-secondary); }
    .profile-menu-link.danger { color: #ff4444; }
    .profile-menu-link.danger:hover { background: rgba(255, 68, 68, 0.08); }
    .profile-menu-divider { height: 1px; background: var(--color-border); margin: 8px 0; }
    .profile-section-card { background: var(--color-bg-primary); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); margin-bottom: 16px; }
    .profile-section-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
    .profile-btn { width: 100%; margin-top: 16px; padding: 10px; border-radius: 12px; border: 1px dashed var(--color-border); background: transparent; color: var(--color-text-tertiary); cursor: pointer; font-size: 14px; transition: all 0.2s; }
    .profile-btn:hover { border-color: var(--color-brand); color: var(--color-brand); background: rgba(248, 96, 74, 0.05); }
    .profile-btn-primary { padding: 8px 16px; border-radius: 20px; background: var(--color-brand); color: #fff; border: none; cursor: pointer; font-size: 14px; font-weight: 500; }
    .profile-btn-primary:hover { background: var(--color-brand-hover); }
    .profile-btn-secondary { padding: 8px 16px; border-radius: 20px; background: var(--color-bg-secondary); border: 1px solid var(--color-border); cursor: pointer; font-size: 14px; font-weight: 500; }
    .profile-btn-secondary:hover { background: var(--color-border); }
    .profile-voice-greeting { background: var(--color-bg-primary); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); margin-bottom: 16px; }
    .profile-voice-greeting p { margin-top: 12px; }
    .profile-voice-play-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--color-brand); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s, transform 0.15s; color: #fff; }
    .profile-voice-play-btn:hover { background: var(--color-brand-hover); transform: scale(1.05); }
    .profile-voice-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
    .profile-voice-progress { height: 4px; background: var(--color-bg-secondary); border-radius: 2px; overflow: hidden; }
    .profile-voice-progress-fill { height: 100%; background: var(--color-brand); border-radius: 2px; transition: width 0.3s; }
    .profile-voice-time { font-size: 11px; color: var(--color-text-quaternary); margin-top: 4px; }
    .profile-avatar { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; }
    .profile-user-thumb { flex-shrink: 0; width: 80px; height: 100px; background: var(--color-bg-secondary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
    .profile-views-block { background: var(--color-bg-primary); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-card); text-align: center; }
    .profile-views-text { font-size: 18px; color: var(--color-text-secondary); }

    /* Модераторские действия */
    .moderator-actions {
        background: var(--color-bg-primary);
        border-radius: 16px;
        padding: 20px;
        box-shadow: var(--shadow-card);
        margin-bottom: 16px;
    }
    .moderator-actions h3 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 16px;
        color: var(--color-text-primary);
    }
    .ban-info {
        background: #fff3cd;
        border: 1px solid #ffc107;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
    }
    .ban-info p {
        margin: 4px 0;
        font-size: 14px;
    }
    .ban-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .ban-select {
        padding: 10px 14px;
        border-radius: 10px;
        border: 1px solid var(--color-border);
        font-size: 14px;
        background: var(--color-bg-primary);
        color: var(--color-text-primary);
    }
    .ban-button {
        background: #ff4444 !important;
        color: #fff !important;
        border: none !important;
    }
    .ban-button:hover {
        background: #cc0000 !important;
    }
    
    /* === ПЛАНШЕТЫ (481px - 768px) === */
    @media (max-width: 768px) and (min-width: 481px) {
        .profile-top-row,
        .profile-middle-row,
        .profile-bottom-row {
            flex-direction: column !important;
            gap: 16px !important;
        }

        .profile-photo-column {
            width: 100% !important;
            max-width: 350px;
            margin: 0 auto;
        }

        .profile-menu-column {
            width: 100% !important;
            order: 3;
        }

        .profile-info-card {
            order: 2;
        }

        .profile-name {
            font-size: 22px;
            padding-right: 100px;
        }

        .profile-details {
            font-size: 13px;
        }

        .profile-avatar {
            aspect-ratio: 4/3;
            max-height: 400px;
        }

        .profile-section-card {
            padding: 16px;
        }

        /* Блоки в столбик */
        .profile-middle-row > div,
        .profile-bottom-row > div {
            width: 100% !important;
            flex: auto !important;
        }
        
        
        .profile-middle-row > div:first-child { order: 2; }
        .profile-middle-row > div:last-child { order: 1; }
        

        /* Кнопки действий */
        .profile-section-card > div[style*="display: flex; gap: 12px"] {
            justify-content: center;
        }
    }

    /* === ТЕЛЕФОНЫ (361px - 480px) === */
    @media (max-width: 480px) and (min-width: 361px) {
        .profile-top-row,
        .profile-middle-row,
        .profile-bottom-row {
            flex-direction: column !important;
            gap: 12px !important;
        }

        .profile-photo-column {
            width: 100% !important;
            max-width: 280px;
            margin: 0 auto;
        }

        .profile-menu-column {
            width: 100% !important;
        }

        .profile-info-card {
            padding: 16px;
        }

        .profile-name {
            font-size: 20px;
            padding-right: 90px;
            margin-bottom: 4px;
        }

        .profile-online-badge {
            top: 12px;
            right: 12px;
            padding: 3px 10px;
        }

        .profile-online-text {
            font-size: 11px;
        }

        .profile-location {
            font-size: 13px;
            margin-bottom: 12px;
        }

        .profile-details {
            font-size: 13px;
            line-height: 1.8;
        }

        .profile-details > div {
            margin-bottom: 4px;
        }

        .profile-avatar {
            aspect-ratio: 1/1;
            max-height: 280px;
            border-radius: 12px;
        }

        .profile-section-card {
            padding: 14px;
            margin-bottom: 12px;
        }

        .profile-section-title {
            font-size: 16px;
            margin-bottom: 12px;
        }

        .profile-menu-link {
            padding: 8px 10px;
            font-size: 13px;
        }

        .profile-btn-primary,
        .profile-btn-secondary {
            padding: 6px 12px;
            font-size: 13px;
        }

        .profile-views-block {
            padding: 16px;
        }

        .profile-views-text {
            font-size: 16px;
        }

        .profile-voice-greeting {
            padding: 14px;
        }

        /* Все в столбик */
        .profile-middle-row > div,
        .profile-bottom-row > div {
            width: 100% !important;
            flex: auto !important;
        }
        
        
        .profile-middle-row > div:first-child { order: 2; }
        .profile-middle-row > div:last-child { order: 1; }
        

        /* Центрируем миниатюры пользователей */
        .profile-section-card > div[style*="display: flex; gap: 12px"] {
            justify-content: center;
        }

        /* Уменьшаем размеры миниатюр */
        .profile-user-thumb {
            width: 60px;
            height: 75px;
            font-size: 24px;
        }
    }

    /* === ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px) === */
    @media (max-width: 360px) {
        .profile-top-row,
        .profile-middle-row,
        .profile-bottom-row {
            flex-direction: column !important;
            gap: 10px !important;
        }

        .profile-photo-column {
            width: 100% !important;
            max-width: 240px;
            margin: 0 auto;
        }

        .profile-menu-column {
            width: 100% !important;
        }

        .profile-info-card {
            padding: 12px;
        }

        .profile-name {
            font-size: 18px;
            padding-right: 80px;
            margin-bottom: 2px;
        }

        .profile-online-badge {
            top: 10px;
            right: 10px;
            padding: 2px 8px;
        }

        .profile-online-dot {
            width: 6px;
            height: 6px;
        }

        .profile-online-text {
            font-size: 10px;
        }

        .profile-location {
            font-size: 12px;
            margin-bottom: 10px;
        }

        .profile-details {
            font-size: 12px;
            line-height: 1.6;
        }

        .profile-details > div {
            margin-bottom: 3px;
        }

        /* Аватар */
        .profile-avatar {
            aspect-ratio: 1/1;
            max-height: 240px;
            border-radius: 10px;
        }

        /* Карточки */
        .profile-section-card {
            padding: 12px;
            margin-bottom: 10px;
            border-radius: 12px;
        }

        .profile-section-title {
            font-size: 15px;
            margin-bottom: 10px;
        }

        /* Меню */
        .profile-menu-card {
            padding: 12px;
        }

        .profile-menu-title {
            font-size: 14px;
            margin-bottom: 10px;
        }

        .profile-menu-link {
            padding: 6px 8px;
            font-size: 12px;
            gap: 6px;
        }

        /* Кнопки */
        .profile-btn-primary,
        .profile-btn-secondary {
            padding: 5px 10px;
            font-size: 12px;
        }

        .profile-btn {
            padding: 8px;
            font-size: 12px;
        }

        /* Просмотры */
        .profile-views-block {
            padding: 12px;
        }

        .profile-views-text {
            font-size: 14px;
        }

        /* Голосовое */
        .profile-voice-greeting {
            padding: 12px;
        }

        .profile-voice-play-btn {
            width: 36px;
            height: 36px;
        }

        .profile-voice-title {
            font-size: 12px;
        }

        /* Все в столбик */
        .profile-middle-row > div,
        .profile-bottom-row > div {
            width: 100% !important;
            flex: auto !important;
        }
        
        
        .profile-middle-row > div:first-child { order: 2; }
        .profile-middle-row > div:last-child { order: 1; }
        

        /* Миниатюры */
        .profile-user-thumb {
            width: 50px;
            height: 62px;
            font-size: 20px;
        }
    }

    /* === ДОПОЛНИТЕЛЬНЫЕ ПРАВКИ ДЛЯ МОБИЛЬНЫХ === */
    @media (max-width: 768px) {
        
        .users-section {
            overflow: visible !important;
        }

        .profile-section-card > div[style*="display: flex; gap: 12px; overflow-x: auto"] {
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        /* Адаптация чат-блоков */
        .profile-compliment-item {
            flex-wrap: wrap;
        }
    }

    @media (max-width: 768px) {
        select.ban-select {
            width: 100% !important;
            max-width: 100% !important;
            font-size: 14px !important;
            padding: 12px 14px !important;
            text-align: left;
            word-break: break-word;
        }
        
        select.ban-select option {
            font-size: 14px !important;
            padding: 8px;
            word-break: break-word;
            white-space: normal;
        }
        
        .ban-form {
            width: 100%;
            overflow: hidden;
        }
        
        .moderator-actions {
            overflow: hidden;
            max-width: 100%;
        }
    }
    
    
    
    /* === БАББЛЫ В СТИЛЕ ГЛАВНОЙ (profile.php) === */

/* Обёртка для баббла с аватаркой */
.profile-bubble-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

/* Баббл слева (аватарка слева) */
.profile-bubble-left {
    flex-direction: row;
}

/* Баббл справа (аватарка справа) */
.profile-bubble-right {
    flex-direction: row-reverse;
}

/* Мини-аватарка в баббле (используем существующую, просто добавляем класс) */
.profile-bubble-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ff6b9d;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.25);
}

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

/* Сам баббл */
.profile-bubble {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 70%;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Баббл для ответа (другой фон) */
.profile-bubble-reverse {
    background: #f3e5f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Хвостик слева (полумесяц) */
.profile-bubble-tail-left {
    position: absolute;
    left: -15px;
    top: 16px;
    width: 18px;
    height: 22px;
    filter: drop-shadow(-2px 1px 2px rgba(0, 0, 0, 0.06));
    z-index: 1;
}

/* Хвостик справа (полумесяц) */
.profile-bubble-tail-right {
    position: absolute;
    right: -15px;
    top: 16px;
    width: 18px;
    height: 22px;
    filter: drop-shadow(2px 1px 2px rgba(0, 0, 0, 0.06));
    z-index: 1;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .profile-bubble {
        max-width: 85%;
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 14px;
    }
    
    .profile-bubble-avatar {
        width: 44px;
        height: 44px;
    }
    
    .profile-bubble-tail-left {
        left: -12px;
        top: 12px;
        width: 14px;
        height: 18px;
    }
    
    .profile-bubble-tail-right {
        right: -12px;
        top: 12px;
        width: 14px;
        height: 18px;
    }
}

/* Подписчики: десктоп — в строку, мобила — с новой строки */
.subscribers-count-desktop {
    font-size: inherit;
    color: inherit;
}

.subscribers-count-mobile {
    display: none;
    font-size: 12px;
    color: var(--color-text-tertiary);
}

@media (max-width: 768px) {
    .subscribers-count-desktop {
        display: none;
    }
    .subscribers-count-mobile {
        display: block;
    }
}


/* /css/pages/profile2.css */

/* ============================================
   ПРОФИЛЬ: ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px)
   ============================================ */
@media (max-width: 360px) {
    .user-logged-in .logo-title {
        display: none;
    }

    .profile-top-row,
    .profile-middle-row,
    .profile-bottom-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .profile-photo-column {
        width: 100% !important;
        max-width: 240px;
        margin: 0 auto;
    }

    .profile-menu-column {
        width: 100% !important;
    }

    .profile-info-card {
        padding: 12px;
    }

    .profile-name {
        font-size: 18px;
        padding-right: 80px;
        margin-bottom: 2px;
    }

    .profile-online-badge {
        top: 10px;
        right: 10px;
        padding: 2px 8px;
    }

    .profile-online-dot {
        width: 6px;
        height: 6px;
    }

    .profile-online-text {
        font-size: 10px;
    }

    .profile-location {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .profile-details {
        font-size: 12px;
        line-height: 1.6;
    }

    .profile-details > div {
        margin-bottom: 3px;
    }

    .profile-avatar {
        aspect-ratio: 1/1;
        max-height: 240px;
        border-radius: 10px;
    }

    .profile-section-card {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .profile-section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .profile-menu-card {
        padding: 12px;
    }

    .profile-menu-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .profile-menu-link {
        padding: 6px 8px;
        font-size: 12px;
        gap: 6px;
    }

    .profile-btn-primary,
    .profile-btn-secondary {
        padding: 5px 10px;
        font-size: 12px;
    }

    .profile-btn {
        padding: 8px;
        font-size: 12px;
    }

    .profile-views-block {
        padding: 12px;
    }

    .profile-views-text {
        font-size: 14px;
    }

    .profile-voice-greeting {
        padding: 12px;
    }

    .profile-voice-play-btn {
        width: 36px;
        height: 36px;
    }

    .profile-voice-title {
        font-size: 12px;
    }

    /* Все в столбик */
    .profile-middle-row > div,
    .profile-bottom-row > div {
        width: 100% !important;
        flex: auto !important;
    }

    /* Миниатюры */
    .profile-user-thumb {
        width: 50px;
        height: 62px;
        font-size: 20px;
    }

    .profile-gift-item {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Комплименты */
    .profile-compliment-avatar {
        width: 28px;
        height: 28px;
    }

    .profile-compliment-name {
        font-size: 11px;
    }

    .profile-compliment-text {
        font-size: 11px;
    }

    .profile-compliment-time {
        font-size: 10px;
    }

    /* Фотографии */
    .photo-card {
        width: 110px !important;
        height: 145px !important;
    }

    .photos-scroller {
        gap: 8px !important;
    }

    /* Модераторские действия */
    .moderator-actions {
        padding: 12px;
    }

    .moderator-actions h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .ban-select {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* ============================================
   ПРОФИЛЬ: ТЕЛЕФОНЫ (361px - 480px)
   ============================================ */
@media (min-width: 361px) and (max-width: 480px) {
    .user-logged-in .logo-title {
        display: none;
    }
    
    .profile-top-row,
    .profile-middle-row,
    .profile-bottom-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .profile-photo-column {
        width: 100% !important;
        max-width: 280px;
        margin: 0 auto;
    }

    .profile-menu-column {
        width: 100% !important;
    }

    .profile-info-card {
        padding: 16px;
    }

    .profile-name {
        font-size: 20px;
        padding-right: 90px;
        margin-bottom: 4px;
    }

    .profile-online-badge {
        top: 12px;
        right: 12px;
        padding: 3px 10px;
    }

    .profile-online-text {
        font-size: 11px;
    }

    .profile-location {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .profile-details {
        font-size: 13px;
        line-height: 1.8;
    }

    .profile-details > div {
        margin-bottom: 4px;
    }

    .profile-avatar {
        aspect-ratio: 1/1;
        max-height: 280px;
        border-radius: 12px;
    }

    .profile-section-card {
        padding: 14px;
        margin-bottom: 12px;
    }

    .profile-section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .profile-menu-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .profile-btn-primary,
    .profile-btn-secondary {
        padding: 6px 12px;
        font-size: 13px;
    }

    .profile-views-block {
        padding: 16px;
    }

    .profile-views-text {
        font-size: 16px;
    }

    .profile-voice-greeting {
        padding: 14px;
    }

    /* Все в столбик */
    .profile-middle-row > div,
    .profile-bottom-row > div {
        width: 100% !important;
        flex: auto !important;
    }

    /* Центрируем миниатюры пользователей */
    .profile-section-card > div[style*="display: flex; gap: 12px"] {
        justify-content: center;
    }

    /* Уменьшаем размеры миниатюр */
    .profile-user-thumb {
        width: 60px;
        height: 75px;
        font-size: 24px;
    }

    /* Подарки и комплименты */
    .profile-gift-item {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Фотографии */
    .photo-card {
        width: 125px !important;
        height: 160px !important;
    }

    .photos-scroller {
        gap: 10px !important;
    }
}

/* ============================================
   ПРОФИЛЬ: ПЛАНШЕТЫ (481px - 768px)
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
    .user-logged-in .logo-title {
        display: none;
    }
    
    .profile-top-row,
    .profile-middle-row,
    .profile-bottom-row {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .profile-photo-column {
        width: 100% !important;
        max-width: 350px;
        margin: 0 auto;
    }

    .profile-menu-column {
        width: 100% !important;
        order: 3;
    }

    .profile-info-card {
        order: 2;
    }

    .profile-name {
        font-size: 22px;
        padding-right: 100px;
    }

    .profile-details {
        font-size: 13px;
    }

    .profile-avatar {
        aspect-ratio: 4/3;
        max-height: 400px;
    }

    .profile-section-card {
        padding: 16px;
    }

    /* Блоки в столбик */
    .profile-middle-row > div,
    .profile-bottom-row > div {
        width: 100% !important;
        flex: auto !important;
    }

    /* Кнопки действий */
    .profile-section-card > div[style*="display: flex; gap: 12px"] {
        justify-content: center;
    }
}

/* ============================================
   ОБЩИЕ ПРАВКИ ДЛЯ ВСЕХ МОБИЛЬНЫХ (до 768px)
   ============================================ */
@media (max-width: 768px) {
    .user-logged-in .logo-title {
        display: none;
    }

    .profile-section-card > div[style*="display: flex; gap: 12px; overflow-x: auto"] {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .profile-compliment-item {
        flex-wrap: wrap;
    }
}

/* ============================================
   ПРОФИЛЬ: ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px)
   ============================================ */
@media (max-width: 360px) {
    .user-logged-in .logo-title {
        display: none;
    }

    .profile-top-row,
    .profile-middle-row,
    .profile-bottom-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .profile-photo-column {
        width: 100% !important;
        max-width: 240px;
        margin: 0 auto;
    }

    .profile-menu-column {
        width: 100% !important;
    }

    .profile-info-card {
        padding: 12px;
    }

    .profile-name {
        font-size: 18px;
        padding-right: 80px;
        margin-bottom: 2px;
    }

    .profile-online-badge {
        top: 10px;
        right: 10px;
        padding: 2px 8px;
    }

    .profile-online-dot {
        width: 6px;
        height: 6px;
    }

    .profile-online-text {
        font-size: 10px;
    }

    .profile-location {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .profile-details {
        font-size: 12px;
        line-height: 1.6;
    }

    .profile-details > div {
        margin-bottom: 3px;
    }

    .profile-avatar {
        aspect-ratio: 1/1;
        max-height: 240px;
        border-radius: 10px;
    }

    .profile-section-card {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .profile-section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .profile-menu-card {
        padding: 12px;
    }

    .profile-menu-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .profile-menu-link {
        padding: 6px 8px;
        font-size: 12px;
        gap: 6px;
    }

    .profile-btn-primary,
    .profile-btn-secondary {
        padding: 5px 10px;
        font-size: 12px;
    }

    .profile-btn {
        padding: 8px;
        font-size: 12px;
    }

    .profile-views-block {
        padding: 12px;
    }

    .profile-views-text {
        font-size: 14px;
    }

    .profile-voice-greeting {
        padding: 12px;
    }

    .profile-voice-play-btn {
        width: 36px;
        height: 36px;
    }

    .profile-voice-title {
        font-size: 12px;
    }

    /* Все в столбик */
    .profile-middle-row > div,
    .profile-bottom-row > div {
        width: 100% !important;
        flex: auto !important;
    }

    /* Миниатюры */
    .profile-user-thumb {
        width: 50px;
        height: 62px;
        font-size: 20px;
    }

    .profile-gift-item {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Комплименты */
    .profile-compliment-avatar {
        width: 28px;
        height: 28px;
    }

    .profile-compliment-name {
        font-size: 11px;
    }

    .profile-compliment-text {
        font-size: 11px;
    }

    .profile-compliment-time {
        font-size: 10px;
    }

    /* Фотографии */
    .photo-card {
        width: 110px !important;
        height: 145px !important;
    }

    .photos-scroller {
        gap: 8px !important;
    }

    /* Модераторские действия */
    .moderator-actions {
        padding: 12px;
    }

    .moderator-actions h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .ban-select {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* ============================================
   ПРОФИЛЬ: ТЕЛЕФОНЫ (361px - 480px)
   ============================================ */
@media (min-width: 361px) and (max-width: 480px) {
    .user-logged-in .logo-title {
        display: none;
    }
    
    .profile-top-row,
    .profile-middle-row,
    .profile-bottom-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .profile-photo-column {
        width: 100% !important;
        max-width: 280px;
        margin: 0 auto;
    }

    .profile-menu-column {
        width: 100% !important;
    }

    .profile-info-card {
        padding: 16px;
    }

    .profile-name {
        font-size: 20px;
        padding-right: 90px;
        margin-bottom: 4px;
    }

    .profile-online-badge {
        top: 12px;
        right: 12px;
        padding: 3px 10px;
    }

    .profile-online-text {
        font-size: 11px;
    }

    .profile-location {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .profile-details {
        font-size: 13px;
        line-height: 1.8;
    }

    .profile-details > div {
        margin-bottom: 4px;
    }

    .profile-avatar {
        aspect-ratio: 1/1;
        max-height: 280px;
        border-radius: 12px;
    }

    .profile-section-card {
        padding: 14px;
        margin-bottom: 12px;
    }

    .profile-section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .profile-menu-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .profile-btn-primary,
    .profile-btn-secondary {
        padding: 6px 12px;
        font-size: 13px;
    }

    .profile-views-block {
        padding: 16px;
    }

    .profile-views-text {
        font-size: 16px;
    }

    .profile-voice-greeting {
        padding: 14px;
    }

    /* Все в столбик */
    .profile-middle-row > div,
    .profile-bottom-row > div {
        width: 100% !important;
        flex: auto !important;
    }

    /* Центрируем миниатюры пользователей */
    .profile-section-card > div[style*="display: flex; gap: 12px"] {
        justify-content: center;
    }

    /* Уменьшаем размеры миниатюр */
    .profile-user-thumb {
        width: 60px;
        height: 75px;
        font-size: 24px;
    }

    /* Подарки и комплименты */
    .profile-gift-item {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Фотографии */
    .photo-card {
        width: 125px !important;
        height: 160px !important;
    }

    .photos-scroller {
        gap: 10px !important;
    }
}

/* ============================================
   ПРОФИЛЬ: ПЛАНШЕТЫ (481px - 768px)
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
    .user-logged-in .logo-title {
        display: none;
    }
    
    .profile-top-row,
    .profile-middle-row,
    .profile-bottom-row {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .profile-photo-column {
        width: 100% !important;
        max-width: 350px;
        margin: 0 auto;
    }

    .profile-menu-column {
        width: 100% !important;
        order: 3;
    }

    .profile-info-card {
        order: 2;
    }

    .profile-name {
        font-size: 22px;
        padding-right: 100px;
    }

    .profile-details {
        font-size: 13px;
    }

    .profile-avatar {
        aspect-ratio: 4/3;
        max-height: 400px;
    }

    .profile-section-card {
        padding: 16px;
    }

    /* Блоки в столбик */
    .profile-middle-row > div,
    .profile-bottom-row > div {
        width: 100% !important;
        flex: auto !important;
    }

    /* Кнопки действий */
    .profile-section-card > div[style*="display: flex; gap: 12px"] {
        justify-content: center;
    }
}

/* ============================================
   ОБЩИЕ ПРАВКИ ДЛЯ ВСЕХ МОБИЛЬНЫХ (до 768px)
   ============================================ */
@media (max-width: 768px) {
    .user-logged-in .logo-title {
        display: none;
    }

    .profile-section-card > div[style*="display: flex; gap: 12px; overflow-x: auto"] {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .profile-compliment-item {
        flex-wrap: wrap;
    }
}

/* ============================================
   ПОСЕТИТЕЛИ / ИЗБРАННИКИ / ЧАТЫ
   ============================================ */
.users-section {
    background: var(--color-bg-primary);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.users-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.section-link {
    font-size: 14px;
    color: var(--color-brand);
    text-decoration: none;
}

.section-link:hover {
    text-decoration: underline;
}

.user-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.user-card {
    flex-shrink: 0;
    width: 140px;
    background: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.user-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.user-avatar-large {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    background: var(--color-bg-primary);
    position: relative;
}

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

.user-details {
    text-align: center;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    word-break: break-word;
}

.user-city {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}

.online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf50;
    border: 2px solid #fff;
    position: absolute;
    top: 8px;
    right: 8px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.scroll-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-btn-left {
    left: -8px;
}

.scroll-btn-right {
    right: -8px;
}