.members-listing-container {
    padding: 40px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.member-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.member-card-inner {
    padding: 20px;
    text-align: center;
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2E7D32;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    margin-bottom: 20px;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.member-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.member-status.active {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.member-status.inactive {
    background-color: #FFEBEE;
    color: #C62828;
}

.member-last-active {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.member-actions {
    margin-top: 15px;
}

.btn-primary {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2E7D32;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1B5E20;
    color: #fff;
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #2E7D32;
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.no-members {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
    padding: 40px;
}


/* Responsive Design */

@media (max-width: 1200px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .members-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-title {
        font-size: 2rem;
    }
    .member-card-inner {
        padding: 15px;
    }
    .member-avatar {
        width: 100px;
        height: 100px;
    }
}


/* === PROFILE PAGE MODERN === */

.profile-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(46, 125, 50, 0.08);
    padding: 0 0 32px 0;
    overflow: hidden;
}

.profile-header-modern {
    position: relative;
    background: #f5f5f5;
    padding-bottom: 60px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-cover-modern {
    width: 100%;
    height: 220px;
    position: relative;
    background: #e0e0e0;
    overflow: hidden;
}

.cover-image-modern {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cover-image-placeholder-modern {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #e0e0e0 60%, #f5f5f5 100%);
}

.btn-edit-cover {
    position: absolute;
    right: 24px;
    bottom: 16px;
    background: #fff;
    border: none;
    border-radius: 22px;
    padding: 7px 18px;
    font-size: 1rem;
    color: #2E7D32;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.08);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

.btn-edit-cover:hover {
    background: #e8f5e9;
}

.profile-avatar-modern {
    position: absolute;
    left: 40px;
    bottom: -60px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-img-modern {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.10);
    object-fit: cover;
    background: #fafafa;
}

.btn-edit-avatar {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.08);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

.btn-edit-avatar:hover {
    background: #e8f5e9;
}

.btn-edit-avatar i {
    color: #2E7D32;
    font-size: 1.2rem;
}

.profile-main-info-modern {
    margin-left: 200px;
    padding-top: 30px;
}

.profile-name-modern {
    font-size: 2.1rem;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 2px;
}

.profile-username-modern {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.profile-status-modern {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    font-size: 0.9rem;
    color: #666;
}

.profile-status-modern i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.profile-status-modern.active i {
    color: #2E7D32;
}

.profile-visibility-modern {
    margin-bottom: 0;
}

.profile-visibility-modern label {
    font-size: 0.98rem;
    color: #666;
    margin-right: 8px;
}

.profile-visibility-modern select {
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    padding: 4px 14px;
    font-size: 1rem;
}


/* Tabs */

.profile-tabs-modern {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 38px 0 0 0;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn-modern {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #888;
    padding: 12px 28px 10px 28px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border 0.2s;
    font-weight: 600;
}

.tab-btn-modern.active,
.tab-btn-modern:hover {
    color: #2E7D32;
    border-bottom: 3px solid #2E7D32;
    background: #f5f5f5;
}

.profile-content-modern {
    padding: 32px 40px 0 40px;
}

.tab-pane-modern {
    display: none;
}

.tab-pane-modern.active {
    display: block;
}


/* Post form */

.post-form-modern {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 18px 22px 14px 22px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.04);
}

.post-textarea-modern {
    width: 100%;
    min-height: 60px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    font-size: 1.1rem;
    margin-bottom: 10px;
    resize: vertical;
}

.post-actions-modern {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-add-photo-modern {
    background: #e8f5e9;
    color: #2E7D32;
    border: none;
    border-radius: 18px;
    padding: 6px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-photo-modern:hover {
    background: #c8e6c9;
}

.btn-post-modern {
    background: #2E7D32;
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 6px 22px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-post-modern:hover {
    background: #1B5E20;
}


/* Posts feed */

.posts-feed-modern {
    margin-top: 18px;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .posts-feed-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts-feed-modern {
        grid-template-columns: 1fr;
    }
}


/* Friends */

.friends-list-modern {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.friend-card-modern {
    background: #fafafa;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.06);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: unset;
}

.friend-avatar-modern {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2E7D32;
}

.friend-info-modern h3 {
    font-size: 1.1rem;
    margin: 0 0 2px 0;
    color: #2E7D32;
}

.friend-info-modern p {
    color: #888;
    font-size: 0.98rem;
    margin: 0;
}

.friend-actions-modern .message-friend-modern {
    background: #e8f5e9;
    color: #2E7D32;
    border: none;
    border-radius: 18px;
    padding: 5px 14px;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background 0.2s;
}

.friend-actions-modern .message-friend-modern:hover {
    background: #c8e6c9;
}

.no-friends-modern {
    color: #888;
    font-size: 1.1rem;
    margin-top: 18px;
}


/* About section */

.about-section-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 10px;
}

.about-item-modern {
    flex: 1 1 320px;
    background: #fafafa;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.06);
    padding: 18px 22px 22px 22px;
}

.bio-editable-modern,
.email-editable-modern {
    position: relative;
}

.bio-text-modern,
.email-text-modern {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 8px;
}

.bio-input-modern,
.email-input-modern {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 7px 12px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.btn-edit-bio-modern,
.btn-edit-email-modern {
    background: #e8f5e9;
    color: #2E7D32;
    border: none;
    border-radius: 18px;
    padding: 5px 14px;
    font-size: 0.98rem;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.2s;
}

.btn-edit-bio-modern:hover,
.btn-edit-email-modern:hover {
    background: #c8e6c9;
}

.btn-save-bio-modern,
.btn-save-email-modern {
    background: #2E7D32;
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 5px 18px;
    font-size: 0.98rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-save-bio-modern:hover,
.btn-save-email-modern:hover {
    background: #1B5E20;
}


/* Responsive */

@media (max-width: 900px) {
    .profile-container {
        margin: 18px 0;
    }
    .profile-main-info-modern {
        margin-left: 160px;
        padding-top: 24px;
    }
    .profile-content-modern {
        padding: 24px 10px 0 10px;
    }
}

@media (max-width: 600px) {
    .profile-header-modern {
        padding-bottom: 100px;
    }
    .profile-avatar-modern {
        left: 50%;
        transform: translateX(-50%);
        bottom: -60px;
    }
    .profile-main-info-modern {
        margin-left: 0;
        padding-top: 80px;
        text-align: center;
    }
    .profile-tabs-modern {
        flex-direction: column;
        gap: 0;
    }
    .about-section-modern {
        flex-direction: column;
        gap: 18px;
    }
}

.cover-image-modern {
    height: 320px !important;
    max-height: 40vw;
}

.post-card-modern {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.post-thumbnail-modern {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.post-thumbnail-modern img,
.post-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    display: block;
}

.post-content-modern {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* === CHAT PAGE MODERN === */

.chat-page {
    display: flex;
    height: 80vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(46, 125, 50, 0.08);
    overflow: hidden;
    margin: 40px 0;
}

.chat-sidebar {
    width: 320px;
    background: #f8f8f8;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.chat-header {
    padding: 24px 24px 12px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2E7D32;
    margin: 0;
}

.chat-header .btn {
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 1rem;
}

.chat-search {
    padding: 16px 24px 8px 24px;
}

.chat-search input {
    width: 100%;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    padding: 8px 14px;
    font-size: 1rem;
}

.chat-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 0 12px 0;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.chat-item:hover,
.chat-item.active {
    background: #e8f5e9;
}

.chat-avatar {
    margin-right: 14px;
    position: relative;
}

.status-indicator.active {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #2E7D32;
    border-radius: 50%;
    border: 2px solid #fff;
}

.chat-info h3 {
    font-size: 1.08rem;
    margin: 0 0 2px 0;
    color: #2E7D32;
    font-weight: 600;
}

.chat-info .last-message {
    color: #888;
    font-size: 0.97rem;
    margin: 0;
}

.unread-count {
    background: #2E7D32;
    color: #fff;
    border-radius: 12px;
    font-size: 0.85rem;
    padding: 2px 8px;
    margin-left: auto;
}

.no-chats {
    color: #888;
    text-align: center;
    margin: 32px 0;
}

.chat-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
}

.chat-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
}

.welcome-content {
    text-align: center;
}

.welcome-content h2 {
    font-size: 1.5rem;
    color: #2E7D32;
    margin-bottom: 8px;
}

.chat-conversation {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info .user-details {
    margin-left: 12px;
}

.friend-name {
    font-size: 1.1rem;
    color: #2E7D32;
    font-weight: 600;
    margin: 0;
}

.friend-status {
    color: #888;
    font-size: 0.95rem;
}

.conversation-actions .btn {
    margin-left: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    color: #2E7D32;
    border: none;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.conversation-actions .btn:hover {
    background: #c8e6c9;
}

.messages-container {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px;
    background: #f5f5f5;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message-input {
    display: flex;
    align-items: flex-end;
    padding: 18px 24px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.input-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 10px;
}

.message-input textarea {
    flex: 1 1 auto;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    font-size: 1rem;
    min-height: 38px;
    resize: none;
    margin-right: 10px;
}

.send-message {
    background: #2E7D32;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background 0.2s;
}

.send-message:hover {
    background: #1B5E20;
}

@media (max-width: 900px) {
    .chat-page {
        flex-direction: column;
        height: auto;
    }
    .chat-sidebar {
        width: 100%;
        min-height: 220px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .chat-main {
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .chat-page {
        margin: 10px 0;
        border-radius: 0;
        box-shadow: none;
    }
    .chat-header,
    .chat-search,
    .chat-item,
    .conversation-header,
    .message-input {
        padding-left: 10px;
        padding-right: 10px;
    }
    .messages-container {
        padding: 10px;
    }
}


/* === Mesaje chat moderne cu avatar === */

.message {
    display: flex;
    align-items: flex-end;
    margin-bottom: 18px;
    max-width: 80%;
}

.message-sent {
    flex-direction: row-reverse;
    margin-left: auto;
    justify-content: flex-end;
}

.message-received {
    margin-right: auto;
    justify-content: flex-start;
}

.message-avatar {
    flex-shrink: 0;
    margin: 0 10px;
}

.message-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.08);
}

.message-bubble {
    background: #e8f5e9;
    color: #222;
    border-radius: 18px;
    padding: 10px 16px;
    min-width: 60px;
    max-width: 350px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.06);
    position: relative;
    word-break: break-word;
}

.message-sent .message-bubble {
    background: #2E7D32;
    color: #fff;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 18px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.message-received .message-bubble {
    background: #fff;
    color: #222;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 18px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border: 1px solid #e0e0e0;
}

.message-text {
    font-size: 1.08rem;
    margin-bottom: 4px;
    line-height: 1.5;
}

.message-time {
    font-size: 0.85rem;
    color: #888;
    text-align: right;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .message {
        max-width: 100%;
    }
    .message-bubble {
        max-width: 90vw;
        font-size: 1rem;
    }
}