.profile-avatar {
    border: 5px solid var(--card-background, #ccc);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.profile-avatar.role-pro {
    border: 5px solid #FFD700; /* Золотая рамка для PRO */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);  /* Золотой отблеск */
}
.social-gallery-image {
    border: 5px solid var(--card-background, #ccc);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.social-gallery-image.role-pro {
    border: 5px solid #FFD700; /* Золотая рамка для PRO */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);  /* Золотой отблеск */
}

.views-mini {
    padding: 10px 10px 25px 10px;
    background-color: var(--profile-header-background-color);
    border-radius: var(--profile-header-border-radius);
    position: relative;
	box-shadow: var(--bio-section-box-shadow);
}

.reactions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.reaction {
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}
.reaction:hover {
    background: #f0f0f0;
}
.reaction.active {
    color: #007bff;
    font-weight: bold;
}
.reaction-popup {
    max-width: 200px;
}
.reaction-popup h4 {
    margin: 0 0 5px;
    font-size: 14px;
}
.reaction-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.reaction-popup li {
    font-size: 12px;
    line-height: 1.4;
}
.gallery-loading {
    font-size: 16px;
    color: var(--card-text-color, #333);
    text-align: center;
    padding: 20px;
}
/* Стили для защиты контактов */
.text-data-value {
    display: none; /* Полностью скрываем текст */
    transition: opacity 0.3s ease; /* Плавный показ */
    user-select: none; /* Нельзя выделять */
}

.text-data-value.show {
    display: inline-block; /* Показываем */
    opacity: 1;
    user-select: text; /* Можно копировать */
}

.show-contact-btn {
    background: var(--links-background, #f3f4f6);
    color: var(--card-text-color, #333);
    border: 1px solid var(--card-border-color, #ddd);
    padding: 6px 12px;
    border-radius: var(--border-radius, 8px);
    cursor: pointer;
    font-size: var(--profile-link-font-size, 14px);
    transition: all 0.2s ease;
}

.show-contact-btn:hover {
    background: var(--links-hover-background, #e0e0e0);
    transform: var(--profile-link-hover-transform, scale(1.02));
}

.contact-item {
    cursor: default; /* Курсор не "кликабельный" на li, только на кнопке */
    position: relative;
}

.contact-item.show .show-contact-btn {
    display: none; /* Кнопка исчезает, когда данные видны */
}

/* Опционально: индикатор таймера (полоска) */
.contact-item.show::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 20px;
    height: 2px;
    background: var(--primary-color, #007bff);
    transition: width 0.3s ease;
}

.cookie-consent {
    border-left: 4px solid var(--primary-color) !important;
}
.cookie-content p {
    color: var(--bio-section-color) !important;
}
.cookie-content {
    color: var(--bio-section-color) !important;
}



/* Контейнер для статуса и кнопки шаринга */
.profile-header-actions {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем элементы по горизонтали */
    gap: 10px; /* Отступ между статусом и кнопкой */
    margin: 10px 0; /* Отступ сверху и снизу для аккуратного размещения */
}

/* Стили для статуса */
.profile-status {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin: 0; /* Убираем лишние отступы */
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Отступ между точкой и текстом */
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, #28a745 0%, #34c759 100%); /* Онлайн */
}

.status-indicator.offline {
    background: linear-gradient(135deg, #dc3545 0%, #e4606d 100%); /* Оффлайн */
}

.status-indicator:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
    display: inline-block;
}

/* Стили для кнопки шаринга */
.profile-share-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.share-toggle {
    border: none;
    background: var(--primary-color, #007bff);
    border-radius: 5px;
    cursor: pointer;
    padding: 9px; /* Компактный размер */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.share-toggle:hover {
    transform: scale(1.1);
}

.share-toggle i {
    color: #fff;
    font-size: 14px; /* Подгоняем под высоту статуса */
}

/* Стили для выпадающего меню шаринга (оставляем без изменений) */
.profile-share {
    position: absolute;
    top: 100%;
    left: 0%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--profile-header-background-color);
    border-radius: 8px;
    padding: 10px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s ease-in-out;
    display: flex;
    flex-direction: row;
    gap: var(--profile-share-gap, 10px);
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.profile-share.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

.profile-share button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: var(--profile-link-padding, 8px 12px);
    background: var(--profile-link-background-color, #f3f4f6);
    color: var(--profile-link-color, #333);
    border-radius: var(--profile-link-border-radius, 6px);
    font-size: var(--profile-link-font-size, 14px);
    cursor: var(--profile-link-cursor, pointer);
    transition: var(--profile-link-transition, all 0.2s ease);
    display: flex;
    align-items: center;
    gap: var(--profile-link-gap, 6px);
}

.profile-share button:hover {
    background: var(--profile-link-hover-background-color, #e0e0e0);
    transform: var(--profile-link-hover-transform, scale(1.02));
}

.profile-share button i {
    color: var(--profile-link-i-color, #333);
    transition: var(--profile-link-i-transition, color 0.2s ease);
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-header-actions {
        gap: 8px;
        margin: 8px 0;
    }
    .profile-status {
        font-size: 12px;
    }
    .status-indicator {
        padding: 4px 8px;
        gap: 5px;
    }
    .status-indicator::before {
        width: 5px;
        height: 5px;
    }
    .share-toggle {
        padding: 6px;
    }
    .share-toggle i {
        font-size: 12px;
    }
}

/* Принудительное отображение QR-кнопок в меню шаринга */
.profile-share .qr-button,
.profile-share .download-qr {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--profile-link-gap, 6px) !important;
    padding: var(--profile-link-padding, 8px 12px) !important;
    background: var(--profile-link-background-color, #f3f4f6) !important;
    color: var(--profile-link-color, #333) !important;
    border-radius: var(--profile-link-border-radius, 6px) !important;
    font-size: var(--profile-link-font-size, 14px) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.profile-share .qr-button:hover,
.profile-share .download-qr:hover {
    background: var(--profile-link-hover-background-color, #e0e0e0) !important;
    transform: var(--profile-link-hover-transform, scale(1.02)) !important;
}

.profile-share .qr-button i,
.profile-share .download-qr i {
    color: var(--profile-link-i-color, #333) !important;
    font-size: 14px !important;
}

/* Убедимся, что весь .profile-share виден при .show */
.profile-share.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

i.fas.fa-share-alt {
    color: #fff;
	font-size: 15px;
}

h2.custom_title {
    color: var(--profile-section-h2-color, var(--card-text-color));
    font-size: var(--profile-section-h2-font-size, 1.5em);
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: none;
}

/* Стили для вертикального списка */
.vblock-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vblock-item {
    margin-bottom: 20px;
    border: none; /* Убрал границу для чистоты */
    padding: var(--profile-card-padding, 20px);
    border-radius: var(--profile-card-border-radius, 12px); /* Больше закругления */
    background: linear-gradient(135deg, var(--card-background), rgba(255, 255, 255, 0.1)); /* Градиент для объема */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Мягкая тень */
    transition: all 0.3s ease; /* Плавный hover */
    position: relative;
    overflow: hidden; /* Для эффектов */
}

.vblock-item:hover {
    transform: translateY(-5px); /* Подъем при hover */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); /* Усиленная тень */
}

.vblock-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #FFD700); /* Акцентная полоска сверху */
}

.vblock-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vblock-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vblock-image {
    width: 60px; /* Немного больше для стиля */
    height: 60px;
    object-fit: cover;
    border-radius: 50%; /* Круглая аватарка для красоты */
    border: 3px solid var(--primary-color); /* Рамка */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vblock-title {
    margin: 0;
    font-size: 1.4rem; /* Больше и жирнее */
    font-weight: 700; /* Bold */
    color: var(--profile-header-h1-color, #333);
    flex: 1;
    line-height: 1.2;
}

.vblock-description-wrapper {
    position: relative;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.4s ease; /* Плавнее раскрытие */
}

.vblock-description-wrapper.expanded {
    max-height: none;
}

.vblock-description {
    margin: 0;
    font-size: var(--bio-section-font-size, 1rem);
    color: var(--bio-section-color, #555);
    line-height: var(--bio-section-line-height, 1.6); /* Больше интерлиньяжа */
    text-align: left;
    font-family: 'Arial', sans-serif; /* Чистый шрифт */
}

.vblock-show-more {
    background: linear-gradient(135deg, var(--primary-color), #0056b3); /* Градиент на кнопке */
    border: none;
    margin-top: 10px;
    display: none;
    transition: all 0.3s ease;
    color: #ffffff;
    padding: 10px 16px; /* Больше padding */
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    width: auto; /* Адаптивно */
    align-self: flex-start;
}

.vblock-show-more:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.vblock-description-wrapper.overflow ~ .vblock-show-more {
    display: block;
}

.vblock-price {
    margin: 10px 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--profile-header-h1-color); 
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Легкая тень для объема */
}

.vblock-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 1rem;
    color: var(--card-text-color);
    text-decoration: none;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
    padding: 10px 16px;
    background: var(--links-background); 
    border-radius: 6px;
    border: 1px solid var(--primary-color);
	width: 110px;
}

.vblock-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px); /* Сдвиг для динамики */
}

/* Скрытые блоки */
.vblock-item.hidden {
    display: none;
}

/* Кнопка "Показать еще X" для списка блоков */
.show-more-blocks {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
    margin: 20px auto 0;
    display: block;
    transition: all 0.3s ease;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    width: 200px; /* Фикс ширины для центрирования */
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.show-more-blocks:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .vblock-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .vblock-image {
        width: 50px;
        height: 50px;
    }
    
    .vblock-title {
        font-size: 1.2rem;
    }
    
    .vblock-show-more,
    .show-more-blocks {
        width: 100%; /* Полная ширина на мобиле */
        font-size: 0.9em;
    }
    
    .vblock-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .vblock-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .vblock-title {
        font-size: 1.1rem;
    }
    
    .vblock-description {
        font-size: 0.95rem;
    }
}

/* Стили для горизонтальной сетки */
.hg-custom-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.hg-custom-block-item {
    border: none;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--card-background), rgba(255, 255, 255, 0.15));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hg-custom-block-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.hg-custom-block-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #FFD700);
    transition: height 0.3s ease;
}

.hg-custom-block-item:hover::before {
    height: 6px;
}

.hg-custom-block-thumbnail {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.hg-custom-block-item:hover .hg-custom-block-thumbnail {
    transform: scale(1.05);
}

.hg-custom-block-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--profile-header-h1-color, #333);
    margin: 0 0 8px;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
	height: 55px;
}

.hg-custom-block-description-wrapper {
    position: relative;
    max-height: 4em;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.hg-custom-block-description-wrapper.expanded {
    max-height: none;
}

.hg-custom-block-description {
    font-size: 0.95em;
    color: var(--bio-section-color, #555);
    line-height: 1.5;
    text-align: center;
    margin: 0 0 10px;
}

.hg-custom-block-item .hg-show-more-text {
    background: linear-gradient(135deg, var(--primary-color, #007BFF), #0056b3) !important;
    border: none;
    margin: 10px auto 10px;
    display: none;
    transition: all 0.3s ease;
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    z-index: 1000;
    position: relative;
    min-height: 32px;
    width: 210px;
}

.hg-custom-block-item.overflow .hg-show-more-text {
    display: block !important;
}

.hg-custom-block-item .hg-show-more-text:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.hg-custom-block-price {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--profile-card-color);
    text-align: center;
    margin: 8px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hg-custom-block-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--card-text-color);
    text-decoration: none;
    padding: 8px 14px;
    background: var(--links-background);
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    margin-top: auto;
}

.hg-custom-block-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Скрытые блоки */
.hg-custom-block-item.hidden {
    display: none;
}

/* Кнопка "Показать еще X" для горизонтальной сетки */
.hg-show-more-blocks {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
    margin: 20px auto 0;
    display: block;
    transition: all 0.3s ease;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.hg-show-more-blocks:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hg-custom-blocks-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 15px;
    }

    .hg-custom-block-item {
        padding: 12px;
    }

    .hg-custom-block-thumbnail {
        max-height: 300px;
    }

    .hg-custom-block-title {
        font-size: 1.2rem;
		height: auto;
    }

    .hg-custom-block-description {
        font-size: 0.9em;
    }

    .hg-custom-block-item .hg-show-more-text {
        font-size: 0.85em;
        padding: 6px 12px;
        width: 130px;
    }

    .hg-show-more-blocks {
        width: 100%;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {

    .hg-custom-block-item {
        padding: 10px;
    }
	.hg-custom-block-title {
	height: auto;
}

    .hg-custom-block-thumbnail {
        max-height: 220px;
    }

    .hg-custom-block-title {
        font-size: 1.1rem;
    }

    .hg-custom-block-description {
        font-size: 0.85em;
    }

    .hg-custom-block-link {
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .hg-custom-block-item .hg-show-more-text {
        font-size: 0.8em;
        padding: 6px 10px;
        width: 120px;
    }

    .hg-show-more-blocks {
        font-size: 0.85em;
        padding: 10px 16px;
    }
}

/* Карусель кастомных блоков */
.custom-blocks-carousel {
    margin: 0;
    padding: 0;
}
.slick-slider .slick-list, .slick-slider .slick-track {
    padding-top: 1px;
}
.custom-block-item {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 300px;
    padding: var(--links-list-li-padding, 15px);
    background: var(--links-list-li-background-color, var(--links-background));
    border: 1px solid var(--card-border-color);
    border-radius: var(--links-list-li-border-radius, var(--border-radius));
    margin: 0 10px;
    transition: var(--links-list-li-transition, all 0.3s ease);
    box-sizing: border-box;
    box-shadow: var(--links-list-li-box-shadow, var(--shadow));
}

.custom-block-item:hover {
    transform: var(--links-list-li-hover-transform, translateY(-5px));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.custom-block-title {
    font-size: var(--profile-link-font-size, 1.2em);
    font-weight: var(--profile-link-font-weight, 600);
    color: var(--profile-link-color, var(--card-text-color));
    margin-bottom: 10px;
    text-align: center;
    word-break: break-word;
}

.custom-block-thumbnail {
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 10px auto;
    display: block;
    border: 1px solid var(--card-border-color);
}

.custom-block-description {
    font-size: 15px;
    color: var(--bio-section-color, var(--card-text-color));
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 5.6em;
    line-height: var(--bio-section-line-height, 1.4em);
    transition: max-height 0.3s ease;
    text-align: center;
}

.custom-block-description.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

.show-more-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: var(--profile-link-padding, 8px 12px);
    border-radius: var(--profile-link-border-radius, var(--border-radius));
    cursor: var(--profile-link-cursor, pointer);
    font-size: var(--profile-link-font-size, 0.9em);
    margin: 10px 0;
    display: none;
    transition: var(--profile-link-transition, all 0.2s ease);
}

.show-more-btn:hover {
    background: var(--profile-link-hover-background-color, var(--links-hover-background));
    transform: var(--profile-link-hover-transform, scale(1.02));
}

.custom-block-link {
    color: var(--links-list-a-color, var(--primary-color));
    text-decoration: var(--links-list-a-text-decoration, none);
    font-weight: var(--profile-link-font-weight, 500);
    font-size: var(--profile-link-font-size, 0.95em);
    margin-top: 5px;
    transition: var(--profile-link-transition, all 0.2s ease);
}

.custom-block-link:hover {
    text-decoration: underline;
}

/* Стили для стрелок и точек Slick */
.slick-prev, .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--profile-link-color, #fff);
    border: none;
    padding: 10px;
    cursor: var(--profile-link-cursor, pointer);
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition: var(--profile-link-transition, all 0.2s ease);
}
.slick-dotted.slick-slider {
    margin-bottom: 10px !important;
}
.slick-prev {
    left: -20px;
}

.slick-next {
    right: -20px;
}

.slick-prev:before, .slick-next:before {
    display: none;
}

.slick-prev:after {
    content: "\f053";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 20px;
    color: #ffffff;
}

.slick-next:after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 20px;
    color: var(--profile-link-color, #fff);
	color: #ffffff;
}

.slick-prev:hover, .slick-next:hover {
    background: var(--profile-link-hover-background-color, var(--links-hover-background));
}

.slick-dots {
    text-align: center;
    margin-top: 15px;
    padding: 0;
    list-style: none;
}

.slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.slick-dots li button {
    width: 10px;
    height: 10px;
    background: var(--card-border-color);
    border: none;
    border-radius: 50%;
    cursor: var(--profile-link-cursor, pointer);
    font-size: 0;
    outline: none;
    transition: var(--profile-link-transition, all 0.2s ease);
}

.slick-dots li.slick-active button {
    background: var(--primary-color);
}
.slick-dots li.slick-active button:before {
    opacity: 0 !important;
}
.slick-dots li button:before {
opacity: 0 !important;
}
/* Адаптивность */
@media (max-width: 768px) {
    .custom-blocks-section {
        padding: 15px;
    }

    .custom-block-item {
        min-height: 280px;
        margin: 0 8px;
    }

    .custom-block-thumbnail {
        max-height: 150px;
    }

    .custom-block-description {
        max-height: 5.2em;
        line-height: 1.3em;
    }

    .slick-prev, .slick-next {
        width: 35px;
        height: 35px;
    }

    .slick-prev:after, .slick-next:after {
        font-size: 18px;
    }

    .slick-prev {
        left: 5px;
    }

    .slick-next {
        right: 5px;
    }
	.slick-dots li.slick-active button:before {
    opacity: 0 !important;
}
.slick-dots li button:before {
    opacity: 0 !important;
}
.slick-dots li button:before {
opacity: 0 !important;
}
}

@media (max-width: 480px) {
    .custom-blocks-section {
        padding: 10px;
    }

    .custom-block-item {
        min-height: 250px;
        margin: 0 5px;
    }

    .custom-block-thumbnail {
        max-height: 120px;
    }

    .custom-block-description {
        max-height: 4.8em;
        line-height: 1.2em;
    }

    .custom-block-title {
        font-size: 1.1em;
    }

    .show-more-btn {
        padding: 6px 10px;
        font-size: 0.85em;
    }

    .custom-block-link {
        font-size: 0.9em;
    }

    .slick-prev, .slick-next {
        width: 30px;
        height: 30px;
    }

    .slick-prev:after, .slick-next:after {
        font-size: 16px;
    }
	.slick-dots li.slick-active button:before {
    opacity: 0 !important;
}
.slick-dots li button:before {
    opacity: 0 !important;
}
.slick-dots li button:before {
opacity: 0 !important;
}
}

.write-button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-bottom: 15px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.write-button:hover {
    background: var(--links-hover-background);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content.sender {
    background-color: var(--card-background);
    color: var(--card-text-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 400px;
    box-shadow: var(--shadow);
    text-align: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Чтобы изображение вписывалось без искажений */
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
/* Для мобильных: скрываем кнопки, если экран маленький, но свайп будет работать */
@media screen and (max-width: 600px) {
    .prev, .next {
        font-size: 30px;
        padding: 10px;
    }

}
#writeForm input, #writeForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    background: var(--links-background);
    color: var(--card-text-color);
}
#writeForm button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
}
#writeForm button:hover {
    background: var(--links-hover-background);
}

/* Секция кастомных блоков */
.custom-blocks-section {
    margin: 20px 0px 0px 0px;
    padding: var(--bio-section-padding, 20px);
    background: linear-gradient(145deg, var(--card-background), rgba(255, 255, 255, 0.1));
    border-radius: var(--bio-section-border-radius, var(--border-radius));
    position: relative;
    box-shadow: var(--bio-section-box-shadow, var(--shadow));
}

/* Контейнер для заголовка и кнопки */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--profile-section-h2-margin-bottom, 15px);
    padding-bottom: var(--profile-section-h2-padding-bottom, 10px);
    border-bottom: 2px solid var(--profile-header-h1-color);
}

/* Стили для заголовка */
.section-title {
    color: var(--profile-section-h2-color, var(--card-text-color));
    font-size: var(--profile-section-h2-font-size, 1.5em);
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

/* Стили для кнопки "Написать" */
.section-action-button {
    background: var(--primary-color, #007bff);
    color: #ffffff;
    border: none;
    padding: var(--profile-link-padding, 8px 16px);
    border-radius: var(--profile-link-border-radius, var(--border-radius));
    font-size: var(--profile-link-font-size, 0.95em);
    font-weight: var(--profile-link-font-weight, 500);
    cursor: var(--profile-link-cursor, pointer);
    transition: var(--profile-link-transition, all 0.2s ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.section-action-button:hover {
    background: var(--profile-link-hover-background-color, #0056b3);
    transform: var(--profile-link-hover-transform, scale(1.02));
}

/* Адаптивность */
@media (max-width: 768px) {
    .custom-blocks-section {
        padding: 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-action-button {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

}

@media (max-width: 480px) {
    .custom-blocks-section {
        padding: 10px;
    }

    .section-title {
        font-size: 1.3em;
    }

    .section-action-button {
        font-size: 0.9em;
        padding: 8px;
    }
}

.custom-block-price {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--profile-header-h1-color);
    margin: 10px 0;
    text-align: center;
}

	.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-appointment {
background-color: var(--card-background);
    color: var(--card-text-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 400px;
    box-shadow: var(--shadow);
    text-align: center;
}
.modal-appointment .close {
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: var(--card-text-color);
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--card-text-color);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    background: var(--links-background);
    color: var(--card-text-color);
    font-size: 1em;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
}
.form-group button:hover {
    background: var(--links-hover-background);
}

/* Стили для блока календаря */
.appointment-block {
    margin-bottom: var(--profile-section-margin-bottom, 20px);
    padding: var(--profile-card-padding, 20px);
    background: var(--bio-section-background-color, #f8f9fa);
    border-radius: var(--border-radius, 12px);
    box-shadow: var(--shadow, 0 2px 4px rgba(0,0,0,0.1));
	margin-top: 20px;
}

/* Стили для FullCalendar */
.fc {
    font-family: inherit;
    color: var(--card-text-color);
    background: var(--card-background);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: var(--profile-card-max-width, 600px);
    margin: 0 auto;
}

.fc-toolbar {
    background: var(--header-background);
    color: var(--card-text-color);
    padding: 10px;
    border-bottom: 1px solid var(--card-border-color);
    flex-wrap: wrap;
}

.fc-toolbar-title {
    font-size: var(--profile-section-h2-font-size, 1.5em);
    font-weight: bold;
}

.fc-button {
    background: var(--links-background);
    border: 1px solid var(--card-border-color);
    color: var(--card-text-color);
    border-radius: var(--border-radius);
    padding: 5px 10px;
    transition: background 0.3s ease;
}

.fc-button:hover {
    background: var(--links-hover-background);
}

.fc-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.fc-event {
    border-radius: var(--border-radius);
    font-size: 0.9em;
    padding: 2px 5px;
    cursor: pointer;
}

.fc-event.available {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.fc-event.booked {
    background: #dc3545;
    border-color: #dc3545;
}

.fc-daygrid-day {
    border: 1px solid var(--card-border-color);
}

.fc-day-today {
    background: rgba(var(--primary-color), 0.1);
}

#calendar.loading::before {
    content: 'Загрузка...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--card-text-color);
    font-size: 1.2em;
    z-index: 1;
}

#calendar.loading .fc-view-harness {
    opacity: 0.5;
}
.fc .fc-cell-shaded, .fc .fc-day-disabled {
    background-color: var(--profile-header-background-color) !important;
}
.fc .fc-scrollgrid-section-sticky>* {
    position: sticky;
    z-index: 3;
    background-color: var(--profile-header-background-color) !important;
}
.fc-theme-standard td, .fc-theme-standard th {
    border: 1px solid var(--card-border-color) !important;
}
.fc-theme-standard .fc-scrollgrid {
    border: 1px solid var(--card-border-color) !important;
}
.fc-list.fc-list-sticky.fc-listWeek-view.fc-view {
    border: 1px solid var(--card-border-color) !important;
}
.fc .fc-button-primary {
    color: #fff !important;
    background-color: var(--primary-color) !important;
}
/* Центрирование точки в режиме списка */
.fc-list-event-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center; /* Для дополнительной совместимости */
}

.fc-list-event-dot {
    display: inline-block;
    margin: 0 auto; /* Центрируем точку */
}
.fc-theme-standard .fc-popover {
    background-color: var(--profile-header-background-color) !important;
    border: 1px solid var(--card-border-color) !important;
}
/* Адаптивность */
@media (max-width: 768px) {
    .fc-toolbar {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .fc-toolbar-chunk {
        margin-bottom: 5px;
    }
    .fc-event {
        font-size: 0.8em;
    }
    .fc {
        font-size: 0.9em;
    }
    .fc .fc-toolbar-title {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .fc-button {
        padding: 3px 6px;
        font-size: 0.85em;
    }
    .appointment-block {
        padding: 10px;
    }
}