:root {
--profile-brand-green: #529471;
--profile-brand-green-hover: #437a5d;
--profile-light-mint: #e6f2ed;
--profile-mint-text: #2d5c43;
--profile-btn-bg: #f0f3f2;
--profile-btn-hover: #e4e9e7;
--profile-card-bg: #ffffff;
--profile-text-main: #1f2937;
--profile-text-muted: #6b7280;
--profile-border-color: #e5e7eb;
}
.profile-container-redesign {
display: flex;
flex-direction: column;
gap: 20px;
width: 100%;
max-width: 100%;
margin: 0 auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color: var(--profile-text-main);
box-sizing: border-box;
}

@media (min-width: 900px) {
.profile-container-redesign {
display: grid;
grid-template-columns: 280px minmax(0, 1fr);
align-items: start;
}
}

/* --- САЙДБАР --- */
.profile-sidebar {
display: flex;
flex-direction: column;
gap: 20px;
width: 100%!important;
box-sizing: border-box;

}
.profile-meta-block {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	margin: 11px 0;
}

.profile-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    line-height: 1.4;
}

.profile-meta-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.meta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 500;
    flex-shrink: 0;
}

.meta-label strong {
    font-weight: 600;
    color: #1e293b;
}

.meta-icon {
    color: #3b82f6;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.meta-value {
    color: #0f172a;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}
.meta-ip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    background: #f1f5f9;
    color: #334155;
    padding: 2px 8px;
    border-radius: 6px;
}
.meta-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.meta-link:hover {
    text-decoration: underline;
}
.profile-card {

background: var(--profile-card-bg);
border-radius: 20px;
padding: 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
border: 1px solid rgba(0, 0, 0, 0.04);
box-sizing: border-box;
max-width: 100%;
overflow: hidden;

}

.widget-title {
font-size: 13px;
font-weight: 700;
color: #374151;
margin: 0 0 16px 0;
text-transform: uppercase;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 8px;
}

.management-menu {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 10px;
}

.management-menu li a {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 18px;
border-radius: 14px;
font-size: 14px;
font-weight: 600;
text-decoration: none;
transition: all 0.2s ease;
background: var(--profile-btn-bg);
color: #2b363b;
}

.management-menu li a:hover {
background: var(--profile-btn-hover);
}

.management-menu li a.add-photo-btn {
background: var(--profile-brand-green);
color: #ffffff;
justify-content: center;
font-size: 15px;
}

.management-menu li a.add-photo-btn:hover {
background: var(--profile-brand-green-hover);
}

.management-menu li a i {
font-size: 16px;
width: 20px;
text-align: center;
color: #4b5563;
}

.management-menu li a.add-photo-btn i {
color: #ffffff;
}

.sidebar-divider {
height: 1px;
background: #e9ecef;
margin: 20px 0 16px 0;
}

.goals-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.tag-mint {
background: var(--profile-light-mint);
color: var(--profile-mint-text);
padding: 8px 16px;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
display: inline-flex;
align-items: center;

}
/* Прибираємо стандартні маркери та відступи списку */
.goals-tags ul.multiple_tags_list,
.goals-tags ul.multiple_tags_list li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}
/* Прибираємо можливі псевдоелементи з крапками або іконками */
.goals-tags ul.multiple_tags_list li::before,
.goals-tags ul.multiple_tags_list li::after,
.goals-tags ul.multiple_tags_list li a::before,
.goals-tags ul.multiple_tags_list li a::after {
    content: none !important;
    display: none !important;
}

/* Розкладаємо <li> так, щоб .goals-tags керував рознесенням тегів */
.goals-tags ul.multiple_tags_list {
    display: contents;
}

.goals-tags ul.multiple_tags_list li {
    display: inline-flex;
}

/* Самі теги-посилання */
.goals-tags ul.multiple_tags_list li a.listbitmask_autolink,
.goals-tags ul.multiple_tags_list li a.users_listbitmask_autolink {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    background-color: #e6f2ee;
       color: #2d5c43;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    border: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.goals-tags ul.multiple_tags_list li a.listbitmask_autolink:hover,
.goals-tags ul.multiple_tags_list li a.listbitmask_autolink:focus,
.goals-tags ul.multiple_tags_list li a.users_listbitmask_autolink:hover,
.goals-tags ul.multiple_tags_list li a.users_listbitmask_autolink:focus {
    background-color: #d3e9e2;
    color: #172420;
    text-decoration: none !important;
    transform: translateY(-1px);
}
/* Відряджет друзі у сайдбарі */
.sidebar-friends-grid {
display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
    box-sizing: border-box;
    width: 100%;
}

.sidebar-friend-item {
text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.sidebar-friend-avatar {
width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 4px auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-friend-name {
font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    max-width: 64px;
    color: #4b5563;
}

/* Промо картка */
.widget-promo {
background: linear-gradient(180deg, #f3fbf7 0%, #e2f2ea 100%);
border: 1px solid #d4eae0;
text-align: center;
padding: 24px 20px;
}

.promo-heart-badge {
width: 38px;
height: 38px;
border-radius: 12px;
border: 2px solid var(--profile-brand-green);
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--profile-brand-green);
margin-bottom: 14px;
background: #ffffff;
}

.promo-text {
font-size: 15px;
font-weight: 600;
color: #234735;
margin: 0 0 16px 0;
line-height: 1.35;
}

.promo-hearts-illustration {
display: flex;
justify-content: center;
align-items: flex-end;
gap: 6px;
height: 60px;
}

.promo-hearts-illustration i.big-heart {
font-size: 52px;
color: var(--profile-brand-green);
}

.promo-hearts-illustration i.small-heart {
font-size: 40px;
color: #92c4aa;
}

/* --- ОСНОВНИЙ КОНТЕНТ --- */
.profile-main-content {
display: flex;
flex-direction: column;
gap: 20px;
min-width: 0; 
width: 100%;
box-sizing: border-box;

}

.profile-header-card {
display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden; /* Запобігає вильоту внутрішніх елементів */
	
}

@media (min-width: 640px) {
.profile-header-card {

flex-direction: row;
align-items: flex-start;

}
}

.profile-avatar-wrap {
flex-shrink: 0;
    position: relative;
    width: 220px;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
}
}

@media (min-width: 640px) {
.profile-avatar-wrap {
margin: 0;
}
}

.profile-big-avatar {
width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-icon-badge {
position: absolute;
bottom: 12px;
right: 12px;
background: rgba(31, 41, 55, 0.85);
color: #ffffff;
width: 36px;
height: 36px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
font-size: 15px;
transition: background 0.2s;
}

.camera-icon-badge:hover {
background: #111827;
}

.profile-info-wrap {
flex: 1;
    min-width: 0; /* Критично для flex-контейнерів, щоб текст і кнопки не розривали блок */
    display: flex;
    flex-direction: column;
    gap: 12px;
	
}
.profile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Вирівнюємо заголовок та онлайн по вертикалі */
    width: 100%;
    gap: 12px;
}
.profile-name-row {display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;

}

.profile-h1 {
margin: 0;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    flex-direction: column; /* Робить так, щоб довгі слова (Анкета знакомства Андрей) переносилися акуратно рядками */
    align-items: flex-start;
    gap: 6px;
    color: #111827;
    line-height: 1.25;
}
/* Блок з кнопками */
.profile-action-buttons {
    
	display: flex;
    flex-direction: column; /* Вибудовуємо кнопки вертикально, щоб акуратно поміщалися */
    align-items: flex-end;
    gap: 6px;
}
.profile-action-buttons .btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
    background: #f8f9fa;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;

}
.profile-action-buttons .btn:hover {
    background: #edf2f7;
    color: #2d3748;
}
/* Зелена кругла галочка верифікації */
.verified-badge {
    background: var(--profile-brand-green);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 4px;
    vertical-align: middle;
}
.online-status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.profile-header-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-height: 24px;
}
.profile-h1 .is_locked {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #f8634e !important;
    background: #fef2f2 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    margin-left: auto !important; /* Притискає елемент праворуч усередині flex-контейнера */
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}
.profile-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e6f2ed;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.online-text {
color: #10b981;
}
.date-log-text {
  color: #4b5563;
    font-weight: 500;
}
/* Тонка горизонтальна лінія розділювач */
.profile-header-divider {
height: 1px !important;
    background-color: #e5e7eb !important;
    width: 100% !important;
    display: block !important;
    margin: 8px 0 !important;
}
.dot-separator {
    color: #d1d5db;
}

.profile-meta-details {
font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;}
/* Окремий елемент мета-інформації з іконкою */
.profile-meta-details .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}	
	/* Посилання на місто */
.profile-meta-details .meta-item a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.profile-meta-details .meta-item a:hover {
    color: var(--profile-brand-green);
    text-decoration: underline;
}

/* Точки-розділювачі між елементами */
.profile-meta-details .meta-divider {
    color: #9ca3af;
    font-size: 12px;
}
/* --- НИЖНІЙ БЛОК СТАТУСУ --- */
.profile-status-bar {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: -10px; /* Акуратно підтягує блок ближче до шапки */
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
    flex-wrap: wrap;
}
.profile-status-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.status-icon-quote {
    color: var(--profile-brand-green);
    font-size: 14px;
    opacity: 0.7;
}
.profile-status-content .text {
    color: #374151;
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
    word-break: break-word;
}
.no-status-text {
    color: #9ca3af;
    font-style: normal;
}
.profile-status-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.status-action-link {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.status-action-link.delete-link {
    color: #ef4444;
    background: #fef2f2;
}

.status-action-link.delete-link:hover {
    background: #fee2e2;
}

.status-action-link.edit-link {
    color: var(--profile-brand-green);
    background: var(--profile-light-mint);
}

.status-action-link.edit-link:hover {
    background: #d8f3e5;
}
.profile-short-bio {
background: #f7fafc;
    padding: 10px 14px;
    border-radius: 10px;
    color: #4a5568;
    font-style: italic;
    font-size: 14px;
}

.profile-user-badges {display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.profile-user-badges .tag-mint.badge-attr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.3;
    background: var(--profile-light-mint, #e6f2ed);
    color: var(--profile-mint-text, #2d5c43);
}

.profile-user-badges .badge-icon {
    color: var(--profile-brand-green, #529471);
    font-size: 12px;
    flex-shrink: 0;
}

.profile-user-badges .badge-label {
    color: #4b6b5b;
    font-weight: 500;
}

.profile-user-badges .badge-value {
    color: #163827;
    font-weight: 700;
}

/* Якщо всередині значення автопосилання InstantCMS (наприклад, "Гетеро") */
.profile-user-badges .badge-value a {
    color: #163827 !important;
    font-weight: 700 !important;
    text-decoration: none;
    border-bottom: 1px dashed rgba(45, 92, 67, 0.55);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.profile-user-badges .badge-value a:hover {
    color: var(--profile-brand-green, #529471) !important;
    border-bottom-color: var(--profile-brand-green, #529471);
}
/* --- InstantCMS ТАБИ (profile_tabs) --- */
.redesign-tabs-container {
background: #ffffff;
    border-radius: 16px;
    padding: 0 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;

}
.redesign-tabs-container #user_profile_tabs {
    position: relative !important;
top: 10px; }
#user_profile_tabs {
width: 100%;
    max-width: 100%;
    background: transparent !important;
    border: none !important;
}
/* Повністю ховаємо мобільний селект, щоб він не створював зайвих блоків */
#user_profile_tabs .mobile_menu_select {
    display: none !important;
}
#user_profile_tabs .tabs-menu {
    overflow: visible !important;
    width: 100%;
    background: transparent !important;
    border: none !important;	
}

#user_profile_tabs ul#menu.tabbed li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
#user_profile_tabs ul#menu.tabbed {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
	justify-content: center;
}
#user_profile_tabs ul#menu.tabbed li a.item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}
#user_profile_tabs ul#menu.tabbed li a.item .wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
}
#user_profile_tabs ul#menu.tabbed li.active a.item,
#user_profile_tabs ul#menu.tabbed li a.item:hover {
    color: var(--profile-brand-green) !important;
}
/* Зелена лінія підкреслення під активною вкладкою */
#user_profile_tabs ul#menu.tabbed li.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background-color: var(--profile-brand-green) !important;
    border-radius: 3px 3px 0 0 !important;
}
/* Очищуємо стандартні системні списки та рамки InstantCMS */
#user_profile_tabs .tabs-menu ul.tabbed,
#user_profile_tabs ul#menu {
    display: flex !important;
    gap: 32px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
#user_profile_tabs .tabs-menu ul.tabbed li,
#user_profile_tabs ul#menu li {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* Стиль для посилань у вкладках */
#user_profile_tabs .tabs-menu ul.tabbed li a.item,
#user_profile_tabs ul#menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 18px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    background: transparent !important;
    box-shadow: none !important;
}
/* Активна вкладка або при наведенні */
#user_profile_tabs .tabs-menu ul.tabbed li.active a.item,
#user_profile_tabs .tabs-menu ul.tabbed li a.item:hover,
#user_profile_tabs ul#menu li.active a,
#user_profile_tabs ul#menu li a:hover {
    color: var(--profile-brand-green) !important;
    border-bottom-color: var(--profile-brand-green) !important;
    background: transparent !important;
}
#user_profile_tabs .tabs-menu ul.tabbed li a.item .wrap,
#user_profile_tabs ul#menu li a .wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
}
#user_profile_tabs ul#menu.tabbed li a.item span.counter {     margin-top: 0;
    background: #e5e7eb !important;
    color: #374151 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    position: static !important; /* Запобігає розльоту цифр */
}

#user_profile_tabs ul#menu.tabbed li.active a.item span.counter {
    background: #e6f2ed !important;
    color: var(--profile-brand-green) !important;
}
/* -------------------------------------------------------------
   АВТОМАТИЧНЕ ДОДАВАННЯ ІКОНОК FONTAWESOME ЧЕРЕЗ ПСЕВДОЕЛЕМЕНТ ::before
   ------------------------------------------------------------- */
#user_profile_tabs ul#menu.tabbed li a.item .wrap::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    color: #4b5563;
    transition: color 0.2s ease;
}

/* 1. Іконка для "Профіль" (fa-user / \f007) */
#user_profile_tabs ul#menu.tabbed li:nth-child(1) a.item .wrap::before,
#user_profile_tabs ul#menu.tabbed li a[href$="/users/1"] .wrap::before {
    content: "\f007" !important;
}

/* 2. Іконка для "Друзі" (fa-user-group / \f500) */
#user_profile_tabs ul#menu.tabbed li:nth-child(2) a.item .wrap::before,
#user_profile_tabs ul#menu.tabbed li a[href*="/friends"] .wrap::before {
    content: "\f500" !important;
}

/* 3. Іконка для "Коментарі" (fa-comments / \f086) */
#user_profile_tabs ul#menu.tabbed li:nth-child(3) a.item .wrap::before,
#user_profile_tabs ul#menu.tabbed li a[href*="/comments"] .wrap::before {
    content: "\f086" !important;
}

/* 4. Іконка для "Флиртики / Симпатії" (fa-heart / \f004) */
#user_profile_tabs ul#menu.tabbed li:nth-child(4) a.item .wrap::before,
#user_profile_tabs ul#menu.tabbed li a[href*="/vzaimnie"] .wrap::before {
    content: "\f004" !important;
}

/* Блоки профілю */
.profile-sections-wrapper {
display: flex;
flex-direction: column;
gap: 20px;
width: 100%;
min-width: 0;
}

.icon-section {
font-size: 18px;
margin-right: 8px;
}

.icon-info-black {color: var(--profile-brand-green);  }
.icon-star-green { color: var(--profile-brand-green); }
.icon-heart-green { color: var(--profile-brand-green); }

.section-title {
font-size: 16px;
font-weight: 700;
color: #111827;
margin: 0 0 14px 0;
display: flex;
align-items: center;
}

.section-body p {
margin: 0;
font-size: 14px;
line-height: 1.6;
color: #374151;

}
.profile-default-avatar
 {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
 .content-counts
 {
    
    margin: 14px 0;
}
.management-menu .button {
    display: flex;
    align-items: center;
   justify-content: left;
    gap: 10px;
}

.management-menu .button i {
    margin-right: 4px;
}

/* Робимо так, щоб текст і іконка були зліва, а лічильник праворуч */
.management-menu .button span:not(.counter-badge) {
    flex-grow: 1;
    text-align: left;
}

/* Стильне оформлення кількості (лічильника) */
.management-menu .button .counter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    min-width: 24px;
}

/* =========================================================
   СТІНА КОРИСТУВАЧА (#wall_widget)
   ========================================================= */
.profile-wall-wrapper #wall_widget {
    width: 100%;
    box-sizing: border-box;
}

/* Шапка стіни: заголовок зліва, кнопка "Написать на стене" справа */
.profile-wall-wrapper #wall_widget .title_bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--profile-border-color, #e5e7eb);
    background: transparent !important;
    float: none !important;
}

.profile-wall-wrapper #wall_widget .title_bar h2.title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--profile-text-main, #1f2937) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: none !important;
}

.profile-wall-wrapper #wall_widget .title_bar h2.title::before {
    content: "\f075";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    color: var(--profile-brand-green, #529471);
    font-size: 16px;
}

.profile-wall-wrapper #wall_add_link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    background: var(--profile-light-mint, #e6f2ed) !important;
    color: var(--profile-mint-text, #2d5c43) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    transition: all 0.2s ease;
    float: none !important;
}

.profile-wall-wrapper #wall_add_link::before {
    content: "\f044";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 12px;
}

.profile-wall-wrapper #wall_add_link:hover {
    background: var(--profile-brand-green, #529471) !important;
    color: #ffffff !important;
}

/* Форма додавання / редагування запису */
.profile-wall-wrapper #wall_add_form {
    background: #f8faf9;
    border: 1px solid #e2ece7;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.profile-wall-wrapper #wall_add_form .markItUp {
    width: 100% !important;
    box-sizing: border-box;
}

.profile-wall-wrapper #wall_add_form .markItUpContainer {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
}

.profile-wall-wrapper #wall_add_form .markItUpHeader {
    background: #f3f6f5;
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 8px;
}

.profile-wall-wrapper #wall_add_form .markItUpHeader ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-wall-wrapper #wall_add_form .markItUpHeader ul li a {
    border-radius: 6px;
    transition: background 0.15s ease;
}

.profile-wall-wrapper #wall_add_form textarea.markItUpEditor,
.profile-wall-wrapper #wall_add_form textarea.textarea {
    width: 100% !important;
    min-height: 110px;
    padding: 12px 14px !important;
    border: none !important;
    outline: none !important;
    background: #ffffff !important;
    color: var(--profile-text-main, #1f2937) !important;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    resize: vertical;
}

.profile-wall-wrapper #wall_add_form .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.profile-wall-wrapper #wall_add_form .buttons input.button,
.profile-wall-wrapper #wall_add_form .buttons input.btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    transition: all 0.2s ease;
}

.profile-wall-wrapper #wall_add_form .buttons input[name="submit"] {
    background: var(--profile-brand-green, #529471);
    border-color: var(--profile-brand-green, #529471);
    color: #ffffff;
}

.profile-wall-wrapper #wall_add_form .buttons input[name="submit"]:hover {
    background: var(--profile-brand-green-hover, #437a5d);
}

.profile-wall-wrapper #wall_add_form .buttons input.button:not([name="submit"]):hover {
    background: #f3f4f6;
}

/* Список записів на стіні */
.profile-wall-wrapper #entries_list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.profile-wall-wrapper .entry {
    background: #ffffff;
    border: 1px solid #edf0ef;
    border-radius: 14px;
    padding: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-wall-wrapper .entry:hover {
    border-color: #d5e4dc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Тіло запису: аватар зліва, контент праворуч */
.profile-wall-wrapper .entry .body {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px;
    width: 100%;
    float: none !important;
}

.profile-wall-wrapper .entry .avatar {
    flex-shrink: 0;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
	border: none!important;
}

.profile-wall-wrapper .entry .avatar img,
.profile-wall-wrapper .entry .avatar .img-thumbnail {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    padding: 0 !important;
    border: 2px solid var(--profile-light-mint, #e6f2ed) !important;
    background: transparent !important;
    display: block;
}

.profile-wall-wrapper .entry .content {
    flex: 1;
    min-width: 0;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Шапка запису: автор, дата, якір # */
.profile-wall-wrapper .entry .info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    float: none !important;
}

.profile-wall-wrapper .entry .info .name a.user {
    font-size: 14px;
    font-weight: 700;
    color: var(--profile-text-main, #1f2937);
    text-decoration: none;
    transition: color 0.15s ease;
}

.profile-wall-wrapper .entry .info .name a.user:hover {
    color: var(--profile-brand-green, #529471);
}

.profile-wall-wrapper .entry .info .date {
    font-size: 12px;
    color: var(--profile-text-muted, #6b7280);
}

.profile-wall-wrapper .entry .info .anchor a {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
}

.profile-wall-wrapper .entry .info .anchor a:hover {
    color: var(--profile-brand-green, #529471);
}

/* Текст поста */
.profile-wall-wrapper .entry .text {
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
    word-break: break-word;
    overflow-wrap: anywhere;
    float: none !important;
}

/* Кнопки дій під постом: Ответить, Редактировать, Удалить */
.profile-wall-wrapper .entry .links {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    padding-top: 10px;
    padding-left: 58px; /* Вирівнюємо по лівому краю тексту поста (44px аватар + 14px gap) */
    border-top: 1px dashed #eef1f0;
    float: none !important;
    clear: both !important;
}

.profile-wall-wrapper .entry .links a {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.profile-wall-wrapper .entry .links a:hover {
    color: var(--profile-brand-green, #529471);
}

.profile-wall-wrapper .entry .links a.delete:hover {
    color: #ef4444;
}

/* Вкладені відповіді */
.profile-wall-wrapper .entry .replies {
    margin-top: 12px;
    margin-left: 58px;
    padding-left: 14px;
    border-left: 2px solid var(--profile-light-mint, #e6f2ed);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-wall-wrapper #entries_list .show_more,
.profile-wall-wrapper .show_more {
    margin-top: 8px !important;
    padding: 0 !important;
    text-align: center !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    height: auto !important;
    line-height: normal !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.profile-wall-wrapper #entries_list .show_more a,
.profile-wall-wrapper .show_more a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 40px !important;
    height: auto !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    text-indent: 0 !important;
    line-height: 1.3 !important;
    border-radius: 12px !important;
    background: var(--profile-btn-bg, #f0f3f2) !important;
    color: var(--profile-text-main, #1f2937) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-wall-wrapper #entries_list .show_more a:hover,
.profile-wall-wrapper .show_more a:hover {
    background: var(--profile-light-mint, #e6f2ed) !important;
    color: var(--profile-mint-text, #2d5c43) !important;
}


/* Мобільна адаптація для стіни */
@media (max-width: 600px) {
    .profile-wall-wrapper .entry {
        padding: 12px;
    }

    .profile-wall-wrapper .entry .links {
        padding-left: 0;
        gap: 12px;
    }

    .profile-wall-wrapper .entry .replies {
        margin-left: 12px;
        padding-left: 10px;
    }
}
/* Форма швидкого статусу з кнопкою відправки */
.profile-status-editor {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.profile-status-editor input[name="status"],
.profile-status-editor .form-control,
.profile-status-editor .input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 8px 14px !important;
    border: 1px solid #d7e2dc !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: var(--profile-text-main, #1f2937) !important;
    font-size: 14px !important;
    box-sizing: border-box;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-status-editor input[name="status"]:focus {
    outline: none !important;
    border-color: var(--profile-brand-green, #529471) !important;
    box-shadow: 0 0 0 3px rgba(82, 148, 113, 0.14) !important;
}

.profile-status-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: var(--profile-brand-green, #529471);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.1s ease;
}

.profile-status-send-btn:hover {
    background: var(--profile-brand-green-hover, #437a5d);
}

.profile-status-send-btn:active {
    transform: scale(0.98);
}

.profile-status-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Плашка поточного статусу */
.profile-info-wrap .status.profile-short-bio,
.profile-info-wrap .status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--profile-light-mint, #e6f2ed);
    border: 1px solid #d3e7de;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 0;
    font-style: normal;
    box-sizing: border-box;
}

.profile-info-wrap .status .text {
    flex: 1;
    min-width: 0;
    color: #163827;
    font-size: 14px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.45;
    word-break: break-word;
}

.profile-info-wrap .status .status-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.profile-info-wrap .status .reply a,
.profile-info-wrap .status .delete a {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-info-wrap .status .reply a {
    color: var(--profile-mint-text, #2d5c43);
    background: rgba(255, 255, 255, 0.75);
}

.profile-info-wrap .status .reply a:hover {
    background: #ffffff;
    color: var(--profile-brand-green, #529471);
}

.profile-info-wrap .status .delete a {
    color: #dc2626;
    background: rgba(254, 242, 242, 0.9);
}

.profile-info-wrap .status .delete a:hover {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 480px) {
    .profile-status-send-btn span {
        display: none;
    }

    .profile-status-send-btn {
        padding: 0 13px;
    }
}