body {
    overflow-y: scroll;
    /*background: linear-gradient(135deg, #fafbfc, #f4f5fb);*/
    background: linear-gradient(135deg, #f8f9fa, #eef4f8);
}

.abjava-links a:link,
.abjava-links a:visited {
    color: #4d7bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.abjava-links a:hover,
.abjava-links a:active {
    color: #3b62d8;
    text-decoration: underline;
}

/* Solid button with gradient */
.abjava-button {
    background: linear-gradient(135deg, #4d7bff, #6b9aff);
    border: none;
    color: white;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.3s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.abjava-button:hover {
    background: linear-gradient(135deg, #3b62d8, #588bff);
    box-shadow: 0 4px 12px rgba(91, 119, 239, 0.3);
    text-decoration: none;
}

.abjava-outline-button {
    border: 1px solid #5c8eff;
    background-color: rgba(92, 142, 255, 0.02);
    color: #4d7bff;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
}

.abjava-outline-button:hover {
    background-color: rgba(92, 142, 255, 0.06);
    border-color: #3b62d8;
    color: #3b62d8;
}

.abjava-button,
.abjava-button:hover,
.abjava-button:focus,
.abjava-button:active,
.abjava-button:visited {
    color: white !important;
}

.abjava-badge {
    display: inline-block;
    padding: 0.35em 0.6em;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.5rem;
    background-color: #4d7bff;
    transition: background-color 0.3s ease;
}

.abjava-badge:hover {
    background-color: #3b62d8;
}

/* ABJAVA PREVIEW */
.abjava-card {
    background-color: #ffffff;
    border: 1px solid #e4e6ff;
    border-radius: 0.5rem;
    transition: box-shadow 0.2s; /* Убрали transform, оставили только тень */
}

.abjava-card:hover {
    box-shadow: 0 2px 8px rgba(91, 119, 239, 0.1); /* Минимальная тень при наведении */
}

.abjava-card.vip {
    background-color: #f8faff;
    border: 2px solid #c8d0ff;
    box-shadow: 0 4px 12px rgba(91, 119, 239, 0.2);
}

.abjava-card.vip:hover {
    box-shadow: 0 4px 12px rgba(91, 119, 239, 0.25); /* Чуть усиленная тень для VIP */
}

/* Загаловак */
.abjava-card .abjava-title a {
    color: #262936;;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
}

.abjava-card .abjava-title a:hover {
    color: #4d7bff;
    text-decoration: underline;
}

/* Апісанне */
.abjava-card .abjava-description {
    color: #5d667e;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Дадатковая інфа */
.abjava-card .abjava-meta {
    color: #5d667e;
    font-size: 0.875rem;
}

/* Фота */
.abjava-photo {
    width: 150px;
    height: 110px;
    object-fit: cover;
    border-radius: 0.5rem;
}

@media (max-width: 992px) {
    .abjava-photo {
        width: 113px;
        height: 83px;
    }
}




/* Новая форма поиска */
.abjava-search-form {
    max-width: 400px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(230, 240, 255, 0.1);
    border-radius: 16px;
    border: 1.5px solid #c8d0ff;
    box-shadow: 0 2px 6px rgba(91, 119, 239, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.abjava-search-form:hover {
    box-shadow: 0 4px 10px rgba(91, 119, 239, 0.15);
    border-color: #4d7bff;
}

.abjava-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 10px;
    font-size: 0.9rem;
    color: #333;
    border-radius: 16px;
    outline: none;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.abjava-search-form input:focus {
    box-shadow: none !important;
    border-color: #4d7bff;
}

/* Убираем крестик сброса для WebKit-браузеров */
.abjava-search-form input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

/* Убираем крестик сброса для Firefox */
.abjava-search-form input[type="search"]::-moz-search-clear-button {
    display: none;
}

.abjava-search-form input::placeholder {
    color: #888;
    opacity: 0.8;
}

.abjava-search-form button {
    border: none;
    background: none;
    color: #c8d0ff;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}

.abjava-search-form button:hover {
    color: #4d7bff;
}





/* INDEX PAGE HEADER */
.header-hero {
    position: relative;
    height: 250px;
    overflow: hidden;
    color: white;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-img.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 30, 60, 0.7);
    z-index: 1;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 15px;
}




/* INDEX PAGE - CATALOG*/
.catalog-container {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f2ff;
    box-shadow: 0 8px 24px rgba(91, 119, 239, 0.04);
    margin: 0 auto;
}

.catalog-sidebar {
    flex: 0 0 380px;
    background: #f9faff;
    border-right: 1px solid #e4e6ff;
    padding: 10px 0;
    font-weight: normal;
}

.catalog-sidebar .category-link {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-weight: normal;
    border-left: 4px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}

.catalog-sidebar .category-link:hover {
    background: #eef0ff;
    border-left: 4px solid #4d7bff;
}

.catalog-sidebar .category-link.active {
    background: #e3e7ff;
    border-left: 4px solid #4d7bff;
}

.catalog-content {
    flex: 1;
    padding: 20px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    max-height: 1000px;
    overflow: hidden;
}

.catalog-content.hidden {
    opacity: 0;
    max-height: 0;
    padding: 0 20px;
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

.category-title {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 10px;
    color: #000;
}

.category-title a {
    color: #000000;
    text-decoration: none;
}

.category-title a:hover {
    color: #3b62d8;
    text-decoration: underline;
}

.category-separator {
    border: none;
    border-top: 1px solid #999999;
    margin: 10px 0 20px 0;
}

.subcategory {
    margin-bottom: 14px;
}

.subcategory h6 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #000;
    font-weight: normal;
}

.subcategory h6 a {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    font-weight: normal;
}

.subcategory h6 a.active {
    color: #000;
}

.subcategory h6 a:hover {
    color: #3b62d8;
    text-decoration: underline;
}

.sub-subcategory a {
    display: inline-block;
    margin: 4px 4px 4px 0;
    padding: 6px 10px;
    background-color: #f0f2ff;
    color: #4d7bff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.sub-subcategory a:hover {
    background-color: #d8e0ff;
    color: #3b62d8;
}

.counter {
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
    .catalog-container {
        flex-direction: column;
    }

    .catalog-sidebar {
        flex: 0 0 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .catalog-sidebar .category-link {
        padding: 12px 16px;
        font-size: 16px;
    }

    .catalog-content {
        display: none;
    }

    .catalog-content.visible {
        display: block;
        max-height: 1000px;
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .catalog-sidebar .category-link {
        padding: 10px 14px;
        font-size: 15px;
    }

    .catalog-container {
        border-radius: 8px;
    }
}
/* INDEX PAGE - CATALOG*/

/* LOGIN PAGE */
.login-card {
    max-width: 400px;
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(91, 119, 239, 0.04);
}

.login-buttons .abjava-button,
.login-buttons .abjava-outline-button {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-icon-link i {
    font-size: 2.2rem;
    color: #4d7bff;
    transition: color 0.3s ease;
}

.footer-icon-link:hover i {
    color: #3b62d8;
}

/* Rewrite bootstrap */
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background: linear-gradient(135deg, #4d7bff, #6b9aff);
    border-color: #4d7bff;
    font-weight: 500;
}

.user-profile-card {
    border: 1px solid #e4e6ff;
    box-shadow: 0 6px 24px rgba(91, 119, 239, 0.05);
    transition: box-shadow 0.3s ease;
}

.user-profile-card:hover {
    box-shadow: 0 10px 30px rgba(91, 119, 239, 0.08);
}

.user-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #e4e6ff;
}

.user-info-block {
    font-size: 0.95rem;
    color: #4b5263;
}

.user-info-block .info-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f3ff;
}

.user-info-block .info-row:last-child {
    border-bottom: none;
}




<!-- Abjava full view -->
/* Стили для описания объявления */
.abjava-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5263;
}

/* Стили для карусели изображений */
.carousel-item img {
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* Стили для блока информации */
.user-info-card {
    border: 1px solid #e4e6ff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(91, 119, 239, 0.1);
}

.user-info-card .list-group-item {
    border: none;
    padding: 10px 0;
}

.user-info-card .list-group-item i {
    color: #4d7bff;
}

/* Стили для кнопок действий */
.action-buttons .btn {
    padding: 6px;
    font-size: 0.9rem;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Стили для секции комментариев */
.comments-section .card {
    border: 1px solid #e4e6ff;
    border-radius: 8px;
}

.comments-section h5 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2a2e3b;
    margin-bottom: 1rem;
}

/* Стили для модального окна */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(91, 119, 239, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e4e6ff;
}

.modal-body .form-label {
    font-weight: 500;
    color: #2a2e3b;
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel-item img {
        max-height: 300px;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .action-buttons .btn {
        flex: 1 0 30px;
    }
}





/* Стили для чипов подкатегорий (унифицированы с .sub-subcategory a) */
.abjava-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    margin: 4px 4px 4px 0;
    background-color: #ffffff; /* Pure white */
    color: #4d7bff;
    border: 1px solid #e4e6ff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    animation: fadeIn 0.3s ease-in-out;
}

.abjava-chip:hover {
    background-color: #f7f9ff; /* Very light purple tint */
    color: #3b62d8;
    border-color: #c8d0ff;
    text-decoration: none;
}

.abjava-chip.active {
    color: #4d7bff;
    font-weight: 500;
    background-color: #ffffff; /* Pure white, matching default */
}

.abjava-chip .counter {
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

/* Адаптивность для чипов */
@media (max-width: 768px) {
    .abjava-chip {
        padding: 5px 8px;
        font-size: 12px;
    }

    .abjava-chip .counter {
        font-size: 11px;
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}