/* ========== СТИЛИ ДЛЯ ГРУПП ========== */

/* Контейнер списка групп */
.lacorn-groups-container {
    width: 100%;
    max-width: none !important;
    padding: 20px;
}

.lcab-groups-body {
    width: 100%;
    max-width: none !important;
}

.lacorn-groups-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
    width: 100%;
}

/* Карточка группы */
.lacorn-group-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lacorn-group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lacorn-group-card:hover::before {
    transform: scaleX(1);
}

.lacorn-group-card:hover {
    transform: translateY(-4px);
    border-color: #6366f1;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

/* Аватар группы */
.lacorn-group-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    object-fit: cover;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lacorn-group-card:hover .lacorn-group-avatar {
    border-color: #6366f1;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Название группы */
.lacorn-group-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.lacorn-group-card:hover .lacorn-group-name {
    color: #6366f1;
}

/* Описание группы */
.lacorn-group-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Статистика группы */
.lacorn-group-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.lacorn-group-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lacorn-group-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #6366f1;
}

.lacorn-group-stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Контейнер действий в карточке группы */
.lacorn-group-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Кнопка открытия группы */
.lacorn-group-open-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.lacorn-group-open-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.lacorn-group-open-btn:active {
    transform: translateY(0);
}

/* Верифицированная группа */
.lacorn-group-card.verified {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.lacorn-group-card.verified::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transform: scaleX(1);
}

.lacorn-group-verified-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== МОДАЛЬНОЕ ОКНО СОЗДАНИЯ/ВЫБОРА ГРУППЫ ========== */

.lacorn-groups-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.lacorn-groups-modal.is-open {
    display: flex;
}

.lacorn-groups-modal-content {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: min(90vw, 800px);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.lacorn-groups-modal-header {
    padding: 24px 32px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.lacorn-groups-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lacorn-groups-modal-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: #64748b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.lacorn-groups-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.lacorn-groups-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

/* Кнопки переключения (Мои группы / Все группы) */
.lacorn-groups-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}

.lacorn-groups-tab {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lacorn-groups-tab.is-active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.lacorn-groups-tab:hover:not(.is-active) {
    background: #e2e8f0;
    color: #1e293b;
}

/* Поиск групп */
.lacorn-groups-search {
    margin-bottom: 24px;
    position: relative;
}

.lacorn-groups-search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.lacorn-groups-search-input:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.lacorn-groups-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94a3b8;
}

/* Кнопка создания группы */
.lacorn-create-group-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lacorn-create-group-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.lacorn-create-group-btn:active {
    transform: translateY(0);
}

/* Пустое состояние */
.lacorn-groups-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.lacorn-groups-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.lacorn-groups-empty-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #64748b;
}

.lacorn-groups-empty-hint {
    font-size: 14px;
    color: #94a3b8;
}

/* Загрузка */
.lacorn-groups-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6366f1;
    font-size: 18px;
    font-weight: 600;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .lacorn-groups-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lacorn-groups-modal-content {
        width: 95vw;
        max-height: 95vh;
    }

    .lacorn-groups-modal-header {
        padding: 20px;
    }

    .lacorn-groups-modal-body {
        padding: 20px;
    }

    .lacorn-group-card {
        padding: 20px;
    }
}

/* Стили для страницы группы */
.lacorn-group-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Аудио плеер для постов стены (стиль голосовых сообщений) */
.lc-wall-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(129, 140, 248, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.15);
    width: 15%;
    position: relative;
    margin: 12px 0;
}

.lc-wall-audio-player__icon {
    font-size: 24px;
    flex-shrink: 0;
    opacity: 0.8;
}

.lc-wall-audio-player__play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.lc-wall-audio-player__play:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.lc-wall-audio-player__play.is-playing {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.lc-wall-audio-player__waveform {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 32px;
    position: relative;
}

.lc-wall-audio-player__wave {
    display: block;
    width: 3px;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.lc-wall-audio-player__play.is-playing ~ .lc-wall-audio-player__waveform .lc-wall-audio-player__wave {
    animation: lc-wall-audio-wave-pulse 1.2s ease-in-out infinite;
}

@keyframes lc-wall-audio-wave-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

.lc-wall-audio-player__play.is-playing ~ .lc-wall-audio-player__waveform .lc-wall-audio-player__wave:nth-child(1) { animation-delay: 0s; }
.lc-wall-audio-player__play.is-playing ~ .lc-wall-audio-player__waveform .lc-wall-audio-player__wave:nth-child(2) { animation-delay: 0.1s; }
.lc-wall-audio-player__play.is-playing ~ .lc-wall-audio-player__waveform .lc-wall-audio-player__wave:nth-child(3) { animation-delay: 0.2s; }
.lc-wall-audio-player__play.is-playing ~ .lc-wall-audio-player__waveform .lc-wall-audio-player__wave:nth-child(4) { animation-delay: 0.3s; }
.lc-wall-audio-player__play.is-playing ~ .lc-wall-audio-player__waveform .lc-wall-audio-player__wave:nth-child(5) { animation-delay: 0.4s; }

.lc-wall-audio-player__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.lc-wall-audio-player__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.1s linear;
}

.lc-wall-audio-player__duration {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
    min-width: 38px;
    text-align: right;
}

.lc-wall-audio-player audio {
    display: none;
}

/* Контейнер для аудио в постах */
.lc-wall-card__audios {
    width: 100%;
    margin: 12px 0;
}

.lc-wall-card__audios .lc-wall-audio-player {
    width: 15%;
}

/* ========== СТИЛИ ДЛЯ ДЕТАЛЬНОЙ СТРАНИЦЫ ГРУППЫ ========== */

/* Заголовок группы на детальной странице */
.lc-profile-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.lc-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}

.lc-profile-header__avatar {
    position: relative;
}

.lc-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: all 0.3s ease;
}

.lc-profile-header:hover .lc-profile-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.lc-profile-name {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
}

/* Галочка верификации для групп */
.lc-profile-name > span:not(.lc-profile-name__votes) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    margin-left: 4px;
    flex-shrink: 0;
    line-height: 1;
}

/* Голоса в профиле группы */
.lc-profile-name__votes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 16px;
    margin-left: 12px;
}

.lc-profile-name__vote {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.lc-profile-name__vote--like {
    color: #16a34a;
}

.lc-profile-name__vote--dislike {
    color: #ef4444;
}

.lc-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.lc-profile-meta__item {
    font-size: 15px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.lc-profile-about {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #6366f1;
}

.lc-profile-about__content {
    color: #475569;
    line-height: 1.7;
    font-size: 15px;
}

.lc-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.lc-profile-action {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lc-profile-action:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.lc-profile-action:active {
    transform: translateY(0);
}

/* Кнопка подписки */
.lacorn-group-subscribe-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.lacorn-group-subscribe-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.lacorn-group-subscribe-btn:active {
    transform: translateY(0);
}

.lacorn-group-subscribe-btn.subscribed {
    background: linear-gradient(135deg, #64748b, #475569);
}

.lacorn-group-subscribe-btn.subscribed:hover {
    background: linear-gradient(135deg, #475569, #334155);
}

/* Посты на странице группы */
.lc-wall-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.lc-wall-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lc-wall-card:hover::before {
    opacity: 1;
}

.lc-wall-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.lc-wall-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.lc-wall-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.lc-wall-card:hover .lc-wall-card__avatar {
    border-color: #6366f1;
    transform: scale(1.1);
}

.lc-wall-card__author {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lc-wall-card__author:hover {
    color: #6366f1;
    text-decoration: none;
}

.lc-wall-card__date {
    font-size: 13px;
    color: #94a3b8;
    margin-left: auto;
}

.lc-wall-card__views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #94a3b8;
    margin-left: 12px;
}

.lc-wall-card__actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.lc-wall-card__action {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lc-wall-card__action:hover {
    background: #f1f5f9;
    border-color: #6366f1;
    color: #6366f1;
}

.lc-wall-card__action--danger:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

.lc-wall-card__content {
    font-size: 15px;
    line-height: 1.7;
    color: #1e293b;
    margin-bottom: 16px;
    word-wrap: break-word;
}

.lc-wall-card__content p {
    margin-bottom: 12px;
}

.lc-wall-card__content p:last-child {
    margin-bottom: 0;
}

.lc-wall-card__media {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.lc-wall-card__media .lc-wall-audio-player {
    width: 100%;
    max-width: 100%;
}

.lc-wall-card__media-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lc-wall-card__media-img:hover {
    transform: scale(1.02);
}

.lc-wall-card__video {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.lc-wall-card__video-el {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Футер поста с лайками и комментариями */
.lc-wall-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: 16px;
}

.lc-wall-votes {
    display: flex;
    gap: 12px;
}

.lc-wall-card__vote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
}

.lc-wall-card__vote-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.lc-wall-card__vote-btn.is-active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.lc-wall-card__vote-btn.is-active:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Комментарии */
.lc-wall-comments {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.lc-wall-comments-toggle {
    background: transparent;
    border: none;
    color: #6366f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.lc-wall-comments-toggle:hover {
    color: #4f46e5;
}

.lc-wall-comments-list {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 3px solid #e2e8f0;
}

.lc-wall-comment {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.lc-wall-comment:last-child {
    border-bottom: none;
}

.lc-wall-comment__author {
    font-weight: 700;
    color: #1e293b;
    margin-right: 8px;
}

.lc-wall-comment__text {
    color: #475569;
    line-height: 1.6;
}

.lc-wall-comment-form {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.lc-wall-comment-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lc-wall-comment-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.lc-wall-comment-submit {
    padding: 10px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lc-wall-comment-submit:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
}

/* Опросы */
.lc-wall-poll {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
}

.lc-poll-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lc-poll-option {
    position: relative;
}

.lc-poll-option-btn {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.lc-poll-option-btn:hover:not(:disabled) {
    border-color: #6366f1;
    background: #f8fafc;
    transform: translateX(4px);
}

.lc-poll-option-btn:disabled {
    cursor: default;
}

/* ========== МОДАЛЬНОЕ ОКНО СОЗДАНИЯ ГРУППЫ ========== */

/* Модальное окно создания группы - основной класс */
.lacorn-group-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lacorn-group-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Контент модального окна */
.lacorn-group-modal-content {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    width: min(90vw, 600px);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.lacorn-group-modal.active .lacorn-group-modal-content {
    transform: translateY(0);
}

.lacorn-group-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}

/* Заголовок модального окна */
.lacorn-group-modal-header {
    padding: 28px 32px;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lacorn-group-modal-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Кнопка закрытия */
.lacorn-group-modal-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: #64748b;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.lacorn-group-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: rotate(90deg);
}

/* Тело модального окна */
.lacorn-group-modal-content form {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Форма создания группы */
.lacorn-group-create-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Группа полей формы */
.lacorn-group-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lacorn-group-form-group label {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lacorn-group-form-group input[type="text"],
.lacorn-group-form-group textarea {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
    width: 100%;
    box-sizing: border-box;
}

.lacorn-group-form-group input[type="text"]:focus,
.lacorn-group-form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.lacorn-group-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Загрузка аватарки */
.lacorn-group-avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lacorn-group-avatar-upload:hover {
    border-color: #6366f1;
    background: #f1f5f9;
}

.lacorn-group-avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.lacorn-group-upload-avatar-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.lacorn-group-upload-avatar-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Действия формы */
.lacorn-group-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid #e2e8f0;
}

.lacorn-group-form-actions button {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.lacorn-group-form-actions button.lacorn-group-modal-close {
    background: #f1f5f9;
    color: #64748b;
    width: auto;
    height: auto;
    font-size: 15px;
    padding: 12px 24px;
}

.lacorn-group-form-actions button.lacorn-group-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: none;
}

.lacorn-group-form-actions button.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.lacorn-group-form-actions button.primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.lacorn-group-form-actions button.primary:active {
    transform: translateY(0);
}

/* Анимации */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.lacorn-create-group-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.lacorn-create-group-modal.is-open {
    display: flex;
}

.lacorn-create-group-modal-content {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    width: min(90vw, 600px);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
    position: relative;
}

.lacorn-create-group-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}

.lacorn-create-group-modal-header {
    padding: 28px 32px;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lacorn-create-group-modal-title {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lacorn-create-group-modal-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: #64748b;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.lacorn-create-group-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: rotate(90deg);
}

.lacorn-create-group-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.lacorn-create-group-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lacorn-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lacorn-form-label {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lacorn-form-input,
.lacorn-form-textarea {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.lacorn-form-input:focus,
.lacorn-form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.lacorn-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.lacorn-form-avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lacorn-form-avatar-upload:hover {
    border-color: #6366f1;
    background: #f1f5f9;
}

.lacorn-form-avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.lacorn-form-avatar-text {
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

.lacorn-create-group-submit {
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    margin-top: 8px;
}

.lacorn-create-group-submit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.lacorn-create-group-submit:active {
    transform: translateY(0);
}

.lacorn-create-group-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Адаптивность для детальной страницы */
@media (max-width: 768px) {
    .lc-profile-header {
        padding: 24px;
    }

    .lc-profile-avatar {
        width: 100px;
        height: 100px;
    }

    .lc-profile-name {
        font-size: 24px;
    }

    .lc-profile-actions {
        flex-direction: column;
    }

    .lc-profile-action {
        width: 100%;
        justify-content: center;
    }

    .lc-wall-card {
        padding: 20px;
    }

    .lc-wall-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .lacorn-create-group-modal-content {
        width: 95vw;
        max-height: 95vh;
    }

    .lacorn-create-group-modal-header {
        padding: 20px;
    }

    .lacorn-create-group-modal-body {
        padding: 20px;
    }

    /* Адаптивность для модального окна создания группы */
    .lacorn-group-modal-content {
        width: 95vw;
        max-height: 95vh;
    }

    .lacorn-group-modal-header {
        padding: 20px;
    }

    .lacorn-group-modal-header h2 {
        font-size: 22px;
    }

    .lacorn-group-modal-content form {
        padding: 20px;
    }

    .lacorn-group-form-actions {
        flex-direction: column;
    }

    .lacorn-group-form-actions button {
        width: 100%;
    }
}

/* ========== ФОРМА СОЗДАНИЯ ПОСТА НА СТРАНИЦЕ ГРУППЫ ========== */

.lc-wall-form {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.lc-wall-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0.8;
}

.lc-wall-form__header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.lc-wall-form__title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lc-wall-form__body {
    margin-bottom: 20px;
}

.lc-wall-form__textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
    resize: vertical;
}

.lc-wall-form__textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.lc-wall-form__textarea::placeholder {
    color: #94a3b8;
}

/* Вложения */
.lc-wall-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.lc-wall-attachment {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lc-wall-attachment:hover {
    transform: scale(1.05);
}

.lc-wall-attachment img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.lc-wall-attachment--audio {
    padding: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.05));
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lc-wall-attachment-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.lc-wall-attachment-remove:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Меню вложений */
.lc-attach-menu-wrap {
    position: relative;
}

.lc-wall-attach-menu-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lc-wall-attach-menu-btn:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.lc-attach-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 240px;
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

.lc-attach-menu[hidden] {
    display: none;
}

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

.lc-attach-menu-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.lc-attach-menu-item:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    transform: translateX(4px);
}

.lc-attach-menu-icon {
    font-size: 20px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-attach-menu-text {
    font-weight: 600;
    flex: 1;
}

/* Футер формы */
.lc-wall-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 2px solid #f1f5f9;
}

.lc-wall-submit {
    padding: 14px 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.lc-wall-submit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.lc-wall-submit:active {
    transform: translateY(0);
}

.lc-wall-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Подборка фильмов */
.lc-wall-collection {
    margin: 16px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f4ff 0%, #faf5ff 100%);
    border: 2px solid #a78bfa;
    border-radius: 16px;
}

.lc-wall-collection__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lc-wall-collection__title {
    font-size: 18px;
    font-weight: 700;
    color: #6b21a8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-wall-collection__remove {
    background: transparent;
    border: none;
    color: #6b21a8;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lc-wall-collection__remove:hover {
    background: rgba(107, 33, 168, 0.1);
    transform: scale(1.1);
}

/* Папка */
.lc-wall-folder {
    margin: 16px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%);
    border: 2px solid #86efac;
    border-radius: 16px;
}

.lc-wall-folder__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lc-wall-folder__title {
    font-size: 18px;
    font-weight: 700;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-wall-folder__remove {
    background: transparent;
    border: none;
    color: #166534;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lc-wall-folder__remove:hover {
    background: rgba(22, 101, 52, 0.1);
    transform: scale(1.1);
}

/* Опрос в форме */
.lc-wall-poll {
    margin: 16px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
    border: 2px solid #60a5fa;
    border-radius: 16px;
}

.lc-wall-poll__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lc-wall-poll__title {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-wall-poll__remove {
    background: transparent;
    border: none;
    color: #1e40af;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lc-wall-poll__remove:hover {
    background: rgba(30, 64, 175, 0.1);
    transform: scale(1.1);
}

.lc-wall-poll__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lc-wall-poll__option {
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #475569;
}

/* Адаптивность формы */
@media (max-width: 768px) {
    .lc-wall-form {
        padding: 20px;
    }

    .lc-wall-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .lc-wall-submit {
        width: 100%;
    }

    .lc-attach-menu {
        left: 0;
        right: 0;
        min-width: auto;
    }
}

/* Стили для подарков группы */
.lc-group-gifts-wrap {
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.lc-group-gifts-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.lc-group-gifts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.lc-group-gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-width: 120px;
    transition: all 0.2s ease;
}

.lc-group-gift-item:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.lc-group-gift-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.lc-group-gift-info {
    text-align: center;
    width: 100%;
}

.lc-group-gift-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.lc-group-gift-sender {
    font-size: 12px;
    color: #64748b;
}

.lc-group-gift-sender-link {
    color: #6366f1;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lc-group-gift-sender-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Стили для модального окна подарков */
.lacorn-gifts-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.lacorn-gifts-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: min(700px, 95vw);
    max-height: 85vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

.lacorn-gifts-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f8f9ff, #fff);
}

.lacorn-gifts-modal__header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.lacorn-gifts-modal__close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lacorn-gifts-modal__close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.lacorn-gifts-modal__content {
    padding: 24px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

.lacorn-gifts-modal__loading,
.lacorn-gifts-modal__empty,
.lacorn-gifts-modal__error {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 16px;
}

.lacorn-gifts-modal__error {
    color: #dc2626;
}

.lacorn-gifts-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.lacorn-gifts-modal__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lacorn-gifts-modal__item:hover {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.lacorn-gifts-modal__item--gift {
    cursor: default;
}

.lacorn-gifts-modal__gift-img {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.lacorn-gifts-modal__gift-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lacorn-gifts-modal__item-color {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px solid #e5e7eb;
}

.lacorn-gifts-modal__item-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    text-align: center;
}

.lacorn-gifts-modal__item-price {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    text-align: center;
}

.lacorn-gifts-modal__item-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lacorn-gifts-modal__item-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.lacorn-gifts-modal__item-btn:active {
    transform: translateY(0);
}

/* Модальное окно выбора приватности */
.lacorn-privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.lacorn-privacy-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: min(500px, 95vw);
    max-height: 85vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    z-index: 10003;
}

.lacorn-privacy-modal__header {
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f8f9ff, #fff);
}

.lacorn-privacy-modal__header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.lacorn-privacy-modal__header p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.lacorn-privacy-modal__body {
    padding: 24px;
    max-height: calc(85vh - 180px);
    overflow-y: auto;
}

.lacorn-privacy-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lacorn-privacy-option:hover {
    border-color: #6366f1;
    background: #fff;
}

.lacorn-privacy-option input[type="radio"] {
    margin-top: 2px;
    cursor: pointer;
}

.lacorn-privacy-option__label {
    flex: 1;
}

.lacorn-privacy-option__label strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
}

.lacorn-privacy-option__label small {
    display: block;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.lacorn-privacy-option input[type="radio"]:checked ~ .lacorn-privacy-option__label strong {
    color: #6366f1;
}

.lacorn-privacy-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.lacorn-privacy-modal__btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    border: none;
}

.lacorn-privacy-modal__btn--cancel {
    background: #e5e7eb;
    color: #475569;
}

.lacorn-privacy-modal__btn--cancel:hover {
    background: #cbd5e1;
}

.lacorn-privacy-modal__btn--confirm {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.lacorn-privacy-modal__btn--confirm:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.lacorn-privacy-modal__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

@media (max-width: 640px) {
    .lacorn-gifts-modal,
    .lacorn-privacy-modal {
        width: 96vw;
    }
    
    .lacorn-gifts-modal__header,
    .lacorn-privacy-modal__header {
        padding: 16px 20px;
    }
    
    .lacorn-gifts-modal__header h3,
    .lacorn-privacy-modal__header h3 {
        font-size: 18px;
    }
    
    .lacorn-gifts-modal__content,
    .lacorn-privacy-modal__body {
        padding: 16px;
    }
    
    .lacorn-gifts-modal__grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}
