main > .container, main > .container-fluid
{
    padding: 15px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

/* Увеличиваем padding снизу для футера */
.footer {
    padding-bottom: 70px !important;
    min-height: 120px; /* Увеличиваем минимальную высоту футера */
}

/* Дополнительный отступ для мобильных устройств */
@media (max-width: 767px) {
    .footer {
        padding-bottom: 90px !important;
        min-height: 150px;
    }
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* Header user section styles */
.navbar .user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Стили для выравнивания иконок статистики */
.view-icon,
.booking-icon,
.contributors-icon,
.like-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    vertical-align: middle;
    font-size: 1.2em;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

/* Контейнер для статистики - унифицированные отступы */
.d-flex.align-items-center.gap-4 {
    align-items: center !important;
    gap: 1.5rem !important;
}

/* Стили для кнопок с иконками */
.btn-link.btn-sm.p-0 {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    text-decoration: none;
    border: none;
    background: none;
    color: inherit;
}

/* Стили для span с иконками */
span.text-muted {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

/* Унифицированные стили для всех счетчиков */
.view-count,
.booking-count,
.contributors-count,
.like-count {
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: baseline;
}

/* Дополнительные стили для кнопки скидывания */
.contributors-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    background: none;
    color: var(--primary, #007bff);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
}

.contributors-btn:hover {
    color: var(--primary-dark, #0056b3);
    transform: scale(1.05);
    text-decoration: none;
}

.contributors-btn .contributors-count {
    font-weight: 600;
    color: inherit;
    margin: 0;
    padding: 0;
}

/* Дополнительные стили для точного выравнивания */
.d-flex.align-items-center.gap-4 > * {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1.5 !important;
}

/* Специальные стили для кнопки лайков */
.d-flex.align-items-center.gap-4 button[class*="like"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Специальные стили для span с просмотрами */
.d-flex.align-items-center.gap-4 span[title*="переглядів"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Специальные стили для кнопки бронирования */
.d-flex.align-items-center.gap-4 .booking-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Специальные стили для span с бронированием */
.d-flex.align-items-center.gap-4 span[title*="бронювань"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Унифицированные стили для всех текстовых элементов */
.d-flex.align-items-center.gap-4 * {
    vertical-align: middle !important;
    line-height: 1.5 !important;
}

/* Дополнительные стили для кнопки скидывания */
.contributors-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    border: none;
    background: none;
    color: var(--primary, #007bff);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.contributors-btn:hover {
    color: var(--primary-dark, #0056b3);
    transform: scale(1.05);
    text-decoration: none;
}

.contributors-btn .contributors-count {
    font-weight: 600;
    color: inherit;
}

/* Иконка добавления нового желания */
.add-wish-notification {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.add-wish-notification:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.add-wish-notification:active {
    transform: translateY(0) scale(0.95);
}

.add-wish-notification .add-wish-icon {
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-wish-notification:hover .add-wish-icon {
    transform: rotate(90deg);
}

/* Анимация пульсации для привлечения внимания */
@keyframes addWishPulse {
    0% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.6), 0 0 0 4px rgba(40, 167, 69, 0.1);
    }
    100% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }
}

.add-wish-notification {
    animation: addWishPulse 2s infinite;
}

.add-wish-notification:hover {
    animation: none;
}

/* Контейнер для мобильных кнопок хедера */
.mobile-header-buttons-container {
    position: fixed;
    /* top и left будут вычисляться через JavaScript */
    z-index: 1031; /* Выше чем navbar (1030) */
    display: none; /* По умолчанию скрыт */
    align-items: center;
    gap: 10px; /* Отступ между кнопками */
}

/* Мобильная иконка добавления желания (вне NavBar) */
.extra-mobile-add-wish-notification {
    position: relative; /* Изменено с fixed на relative */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    overflow: hidden;
}

.extra-mobile-add-wish-notification:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.extra-mobile-add-wish-notification:active {
    transform: translateY(0) scale(0.95);
}

.extra-mobile-add-wish-notification .extra-mobile-add-wish-icon {
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.extra-mobile-add-wish-notification:hover .extra-mobile-add-wish-icon {
    transform: rotate(90deg);
}

/* Анимация пульсации для мобильной иконки */
.extra-mobile-add-wish-notification {
    animation: addWishPulse 2s infinite;
}

.extra-mobile-add-wish-notification:hover {
    animation: none;
}

.navbar .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.navbar .user-info:hover {
    transform: translateY(-1px);
}

.navbar .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.2s ease;
}

.navbar .user-avatar:hover {
    transform: scale(1.05);
}

.navbar .user-name {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar .user-name:hover {
    color: #007bff;
}

.navbar .logout-btn {
    border: 1px solid #6c757d;
    color: #6c757d;
    transition: all 0.2s ease;
}

.navbar .logout-btn:hover {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* Индикатор новых запросов в друзья */
.friendship-notification {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.friendship-notification:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
    text-decoration: none;
}

.friendship-notification.has-notifications {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    animation: pulse 2s infinite;
}

.friendship-notification.has-notifications:hover {
    background: #ffeaa7;
    border-color: #fdcb6e;
    color: #6c5ce7;
}

.friendship-notification .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.friendship-notification .notification-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Мобильная иконка друзей */
.mobile-friendship-notification {
    position: relative;
    display: none; /* По умолчанию скрыта */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    order: -1; /* Размещаем перед кнопкой мобильного меню */
}

.mobile-friendship-notification:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
    text-decoration: none;
}

.mobile-friendship-notification.has-notifications {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    animation: pulse 2s infinite;
}

.mobile-friendship-notification.has-notifications:hover {
    background: #ffeaa7;
    border-color: #fdcb6e;
    color: #6c5ce7;
}

.mobile-friendship-notification .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mobile-friendship-notification .notification-icon {
    font-size: 1.2rem;
}

/* Дополнительная мобильная иконка друзей (за пределами меню) */
.extra-mobile-friendship-notification {
    position: relative; /* Изменено с fixed на relative */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.extra-mobile-friendship-notification:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.extra-mobile-friendship-notification.has-notifications {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    animation: pulse 2s infinite;
}

.extra-mobile-friendship-notification.has-notifications:hover {
    background: #ffeaa7;
    border-color: #fdcb6e;
    color: #6c5ce7;
}

.extra-mobile-friendship-notification .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.extra-mobile-friendship-notification .notification-icon {
    font-size: 1.2rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Мобильная иконка уведомлений (вне NavBar) */
.extra-mobile-notification-notification {
    position: relative;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    /* Убираем overflow: hidden чтобы бейдж не обрезался */
}

.extra-mobile-notification-notification:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.extra-mobile-notification-notification:active {
    transform: translateY(0) scale(0.95);
}

.extra-mobile-notification-notification.has-notifications {
    animation: pulse 2s infinite;
}

.extra-mobile-notification-notification .extra-mobile-notification-icon {
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.extra-mobile-notification-notification:hover .extra-mobile-notification-icon {
    transform: scale(1.1);
}

.extra-mobile-notification-notification .notification-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Анимация пульсации для уведомлений */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
    /* Скрываем основную иконку друзей на мобильных */
    .friendship-notification {
        display: none !important;
    }
    
    /* Скрываем десктопную иконку добавления желания на мобильных */
    .add-wish-notification {
        display: none !important;
    }
    
    /* Показываем мобильную иконку друзей */
    .mobile-friendship-notification {
        display: inline-flex;
    }
    
    /* Показываем дополнительную мобильную иконку друзей */
    .extra-mobile-friendship-notification {
        display: inline-flex;
    }
    
    /* Показываем дополнительную мобильную иконку добавления желания */
    .extra-mobile-add-wish-notification {
        display: inline-flex;
    }
    
    /* Показываем контейнер мобильных кнопок */
    .mobile-header-buttons-container {
        display: flex;
    }
    
    /* Показываем мобильную иконку уведомлений */
    .extra-mobile-notification-notification {
        display: inline-flex;
    }
    
    .mobile-friendship-notification {
        width: 36px;
        height: 36px;
        margin-right: 0.3rem;
    }
    
    .mobile-friendship-notification .notification-icon {
        font-size: 1.1rem;
    }
    
    .mobile-friendship-notification .notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
        top: -4px;
        right: -4px;
    }
    
    .extra-mobile-friendship-notification {
        width: 36px;
        height: 36px;
        margin-right: 0.3rem;
    }
    
    .extra-mobile-friendship-notification .notification-icon {
        font-size: 1.1rem;
    }
    
    .extra-mobile-friendship-notification .notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
        top: -4px;
        right: -4px;
    }
    
    .extra-mobile-notification-notification {
        width: 36px;
        height: 36px;
    }
    
    .extra-mobile-notification-notification .extra-mobile-notification-icon {
        font-size: 1.1rem;
    }
    
    .extra-mobile-notification-notification .notification-badge {
        min-width: 20px;
        height: 20px;
        font-size: 0.65rem;
        top: -10px;
        right: -10px;
    }
}

/* Адаптивность для планшетов (768-990px) */
@media (min-width: 768px) and (max-width: 990px) {
    /* Скрываем основную иконку друзей на планшетах */
    .friendship-notification {
        display: none !important;
    }
    
    /* Скрываем десктопную иконку добавления желания на планшетах */
    .add-wish-notification {
        display: none !important;
    }
    
    /* Показываем мобильную иконку друзей */
    .mobile-friendship-notification {
        display: inline-flex;
    }
    
    /* Показываем дополнительную мобильную иконку друзей */
    .extra-mobile-friendship-notification {
        display: inline-flex;
    }
    
    /* Показываем дополнительную мобильную иконку добавления желания */
    .extra-mobile-add-wish-notification {
        display: inline-flex;
    }
    
    /* Показываем контейнер мобильных кнопок */
    .mobile-header-buttons-container {
        display: flex;
    }
    
    /* Показываем мобильную иконку уведомлений */
    .extra-mobile-notification-notification {
        display: inline-flex;
    }
    
    .mobile-friendship-notification {
        width: 38px;
        height: 38px;
        margin-right: 0.4rem;
    }
    
    .mobile-friendship-notification .notification-icon {
        font-size: 1.15rem;
    }
    
    .mobile-friendship-notification .notification-badge {
        min-width: 17px;
        height: 17px;
        font-size: 0.68rem;
        top: -4px;
        right: -4px;
    }
    
    .extra-mobile-friendship-notification {
        width: 38px;
        height: 38px;
        margin-right: 0.4rem;
    }
    
    .extra-mobile-friendship-notification .notification-icon {
        font-size: 1.15rem;
    }
    
    .extra-mobile-friendship-notification .notification-badge {
        min-width: 17px;
        height: 17px;
        font-size: 0.68rem;
        top: -4px;
        right: -4px;
    }
    
    .extra-mobile-notification-notification {
        width: 38px;
        height: 38px;
    }
    
    .extra-mobile-notification-notification .extra-mobile-notification-icon {
        font-size: 1.15rem;
    }
    
    .extra-mobile-notification-notification .notification-badge {
        min-width: 21px;
        height: 21px;
        font-size: 0.68rem;
        top: -11px;
        right: -11px;
    }
}

/* Стили для разрешения 990px и выше */
@media (min-width: 991px) {
    .friendship-notification {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f8f9fa;
        border: 2px solid #e9ecef;
        color: #6c757d;
        text-decoration: none;
        transition: all 0.3s ease;
        margin-right: 0.5rem;
    }
    
    .friendship-notification .notification-icon {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        line-height: 1;
        margin: 0;
        padding: 0;
    }
    
    .friendship-notification .notification-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        min-width: 18px;
        height: 18px;
        font-size: 0.7rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    /* Скрываем мобильные версии на больших экранах */
    .mobile-friendship-notification,
    .extra-mobile-friendship-notification {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-friendship-notification {
        width: 32px;
        height: 32px;
        margin-right: 0.2rem;
    }
    
    .mobile-friendship-notification .notification-icon {
        font-size: 1rem;
    }
    
    .mobile-friendship-notification .notification-badge {
        min-width: 14px;
        height: 14px;
        font-size: 0.6rem;
        top: -3px;
        right: -3px;
    }
    
    .extra-mobile-friendship-notification {
        width: 32px;
        height: 32px;
        margin-right: 0.2rem;
    }
    
    .extra-mobile-friendship-notification .notification-icon {
        font-size: 1rem;
    }
    
    .extra-mobile-friendship-notification .notification-badge {
        min-width: 14px;
        height: 14px;
        font-size: 0.6rem;
        top: -3px;
        right: -3px;
    }
    
    /* Адаптация мобильной иконки добавления желания для очень маленьких экранов */
    .extra-mobile-add-wish-notification {
        width: 32px;
        height: 32px;
    }
    
    .extra-mobile-add-wish-notification .extra-mobile-add-wish-icon {
        font-size: 1rem;
    }
    
    .extra-mobile-notification-notification {
        width: 32px;
        height: 32px;
    }
    
    .extra-mobile-notification-notification .extra-mobile-notification-icon {
        font-size: 1rem;
    }
    
    .extra-mobile-notification-notification .notification-badge {
        min-width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: -9px;
        right: -9px;
    }
}

/* Скрываем основную иконку друзей на мобильных устройствах */
@media (max-width: 767px) {
    .friendship-notification {
        width: 32px;
        height: 32px;
        margin-right: 0.3rem;
    }
    
    .friendship-notification .notification-icon {
        font-size: 1rem;
    }
    
    .friendship-notification .notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
        top: -4px;
        right: -4px;
    }
}

@media (max-width: 480px) {
    .friendship-notification {
        width: 28px;
        height: 28px;
        margin-right: 0.2rem;
    }
    
    .friendship-notification .notification-icon {
        font-size: 0.9rem;
    }
    
    .friendship-notification .notification-badge {
        min-width: 14px;
        height: 14px;
        font-size: 0.6rem;
        top: -3px;
        right: -3px;
    }
}

/* Mobile responsive */
@media(max-width:767px) {
    .navbar .user-section {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .navbar .user-info {
        justify-content: center;
    }
    
    .navbar .logout-btn {
        width: 100%;
        text-align: center;
    }
    
    .navbar .user-name {
        max-width: 200px;
    }
}

/* Legacy logout styles for backend */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a {
    text-decoration: none;
}

/* Стили для эмодзи в вишлистах */
.wishlist-emoji {
    font-size: 1.5rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.wishlist-card .wishlist-emoji {
    font-size: 1.2rem;
}

.current-emoji {
    font-size: 1.5rem;
    font-weight: bold;
    color: #495057;
}

.emoji-btn.selected {
    border-color: #28a745 !important;
    background: #d4edda !important;
    transform: scale(1.15);
}

/* Стили для кликабельных карточек wishlist на главной странице */
.wishlist-card {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.wishlist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Стили для аватарок пользователей в карточках wishlist */
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-placeholder {
    font-size: 24px;
    color: #6c757d;
}

/* ===== Mobile Improvements for Wish Form ===== */

/* Сброс стилей Bootstrap для секции импорта */
.import-section * {
    box-sizing: border-box;
}

/* Секция импорта - новая структура */
.import-section {
    width: 100%;
}

.import-input-wrapper {
    display: flex !important;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
    flex-direction: column;
}

.import-url-input {
    flex: 1;
    min-width: 0;
    border-radius: 0.375rem;
    font-size: 16px;
    padding: 0.75rem;
    border: 1px solid #ced4da;
}

.import-btn {
    white-space: nowrap !important;
    border-radius: 0.375rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    /* Мобильная версия секции импорта */
    .import-input-wrapper {
        flex-direction: column !important;
        gap: 0.75rem;
        align-items: stretch !important;
    }
    
    .import-url-input {
        width: 100%;
        margin-bottom: 0;
        font-size: 16px;
        padding: 1rem;
        border-radius: 0.5rem;
        border: 2px solid #e2e8f0;
        background-color: #ffffff;
    }
    
    .import-url-input:focus {
        border-color: #0ea5e9;
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        outline: none;
    }
    
    .import-btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 56px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 0.5rem;
        background-color: #0ea5e9;
        border: none;
        color: white;
        transition: all 0.2s ease;
        display: flex !important;
        align-items: center !important;
    }
    
    .import-btn:hover {
        background-color: #0284c7;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    }
    
    .import-btn:active {
        transform: translateY(0);
    }
    
    /* Улучшение полей формы */
    .wish-form .form-control,
    .wish-form .form-select {
        font-size: 16px; /* Предотвращает зум на iOS */
        padding: 0.75rem;
        border-radius: 0.375rem;
    }
    
    /* Улучшение кнопки отправки */
    .wish-form .btn-lg {
        min-height: 56px;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    /* Улучшение карточек */
    .wish-form .card {
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }
    
    .wish-form .card-body {
        padding: 1rem;
    }
    
    /* Улучшение боковой панели на мобильных */
    .wish-form .col-lg-4 {
        margin-top: 1.5rem;
    }
    
    /* Улучшение полей цены и валюты */
    .wish-form .row .col-sm-6 {
        margin-bottom: 1rem;
    }
    
    /* Улучшение полей изображений */
    .wish-form input[type="file"] {
        padding: 0.5rem;
    }
    
    /* Улучшение предварительного просмотра */
    .wish-form #image-preview-card {
        margin-top: 1rem;
    }
    
    .wish-form #image-preview {
        max-width: 100%;
        height: auto;
    }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 480px) {
    .import-btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        min-height: 52px;
    }
    
    .wish-form .form-control,
    .wish-form .form-select {
        font-size: 16px;
        padding: 0.875rem;
    }
    
    .wish-form .btn-lg {
        min-height: 52px;
        font-size: 1rem;
    }
}

/* Улучшение для планшетов */
@media (min-width: 768px) and (max-width: 1023px) {
    .import-input-wrapper {
        flex-direction: row !important;
        gap: 0.75rem;
    }
    
    .import-url-input {
        flex: 1;
        min-width: 0;
    }
    
    .import-btn {
        width: auto !important;
        min-width: 140px;
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* Десктопная версия */
@media (min-width: 1024px) {
    .import-input-wrapper {
        flex-direction: row !important;
        gap: 1rem;
    }
    
    .import-url-input {
        flex: 1;
        min-width: 0;
        font-size: 16px;
        padding: 0.875rem 1rem;
    }
    
    .import-btn {
        width: auto !important;
        min-width: 160px;
        padding: 0.875rem 1.5rem;
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* Пагинация - исправление стилей стрелок */
.pagination .page-item.prev.disabled span,
.pagination .page-item.next.disabled span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.pagination .page-item.prev span,
.pagination .page-item.next span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    color: #0ea5e9;
    background-color: #ffffff;
    border: 1px solid #7dd3fc;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-item.prev span:hover,
.pagination .page-item.next span:hover {
    background-color: #f0f9ff;
    border-color: #38bdf8;
    color: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Стили для красивого модального окна */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.custom-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    margin: 20px;
    transform: scale(0.9);
    animation: slideIn 0.3s ease forwards;
    overflow: hidden;
}

.custom-modal-header {
    padding: 24px 24px 0 24px;
    text-align: center;
}

.custom-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.custom-modal-icon.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.custom-modal-icon.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.custom-modal-icon.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.custom-modal-icon.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.custom-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
}

.custom-modal-message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.custom-modal-body {
    padding: 0 24px 24px 24px;
    text-align: center;
}

.custom-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.custom-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    min-width: 100px;
}

.custom-modal-btn.primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.custom-modal-btn.primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.custom-modal-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.custom-modal-btn.secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.custom-modal-btn.danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.custom-modal-btn.danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

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

@keyframes slideIn {
    from { 
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to { 
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .custom-modal {
        width: 95%;
        margin: 10px;
        border-radius: 12px;
    }
    
    .custom-modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .custom-modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .custom-modal-title {
        font-size: 18px;
    }
    
    .custom-modal-message {
        font-size: 14px;
    }
    
    .custom-modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .custom-modal-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* Стили для toast уведомлений */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    max-width: 350px;
    z-index: 10000;
    transform: translateX(400px);
    animation: slideInRight 0.3s ease forwards;
    border-left: 4px solid #007bff;
}

.custom-toast.success {
    border-left-color: #4CAF50;
}

.custom-toast.error {
    border-left-color: #f44336;
}

.custom-toast.warning {
    border-left-color: #ff9800;
}

.custom-toast.info {
    border-left-color: #2196F3;
}

.custom-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

.custom-toast-icon.success {
    background: #4CAF50;
}

.custom-toast-icon.error {
    background: #f44336;
}

.custom-toast-icon.warning {
    background: #ff9800;
}

.custom-toast-icon.info {
    background: #2196F3;
}

.custom-toast-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-family: 'Inter', sans-serif;
}

@keyframes slideInRight {
    from { transform: translateX(400px); }
    to { transform: translateX(0); }
}

@keyframes slideOutRight {
    from { transform: translateX(0); }
    to { transform: translateX(400px); }
}

@media (max-width: 480px) {
    .custom-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
        animation: slideInTop 0.3s ease forwards;
    }
    
    @keyframes slideInTop {
        from { transform: translateY(-100px); }
        to { transform: translateY(0); }
    }
    
    @keyframes slideOutTop {
        from { transform: translateY(0); }
        to { transform: translateY(-100px); }
    }
}

/* Стили для виджета уведомлений */
.notification-widget {
    position: relative;
}

.notification-widget .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    border: none;
    padding: 0;
}

.notification-widget .dropdown-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.notification-widget .dropdown-toggle:active {
    transform: translateY(0) scale(0.95);
}

.notification-widget .dropdown-toggle i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.notification-widget .dropdown-toggle:hover i {
    transform: scale(1.1);
}

.notification-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6c757d, #545b62);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.notification-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

.notification-link:active {
    transform: translateY(0) scale(0.95);
}

.notification-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.notification-link:hover i {
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .notification-widget .dropdown-toggle,
    .notification-link {
        width: 36px;
        height: 36px;
    }
    
    .notification-widget .dropdown-toggle i,
    .notification-link i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .notification-widget .dropdown-toggle,
    .notification-link {
        width: 32px;
        height: 32px;
    }
    
    .notification-widget .dropdown-toggle i,
    .notification-link i {
        font-size: 0.9rem;
    }
}

/* Стили для унифицированных иконок в карточках желаний */
.priority-icon {
    font-size: 1.2rem;
    margin-right: 0.25rem;
}

.priority-count {
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: baseline;
}

/* Унифицированные стили для всех иконок в карточках */
.d-flex.align-items-center.gap-4 .priority-icon,
.d-flex.align-items-center.gap-4 .view-icon,
.d-flex.align-items-center.gap-4 .booking-icon,
.d-flex.align-items-center.gap-4 .contributors-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    vertical-align: middle;
    font-size: 1.2em;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

/* Стили для кнопок бронирований и скидываний */
.booking-btn,
.contributors-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    border: none;
    background: none;
    color: var(--primary, #007bff);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
}

.booking-btn:hover,
.contributors-btn:hover {
    color: var(--primary-dark, #0056b3);
    transform: scale(1.05);
    text-decoration: none;
}

.booking-btn .booking-count,
.contributors-btn .contributors-count {
    font-weight: 600;
    color: inherit;
    margin: 0;
    padding: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
    .d-flex.align-items-center.gap-4 {
        gap: 1rem !important;
        flex-wrap: wrap;
    }
    
    .d-flex.align-items-center.gap-4 .priority-icon,
    .d-flex.align-items-center.gap-4 .view-icon,
    .d-flex.align-items-center.gap-4 .booking-icon,
    .d-flex.align-items-center.gap-4 .contributors-icon {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .d-flex.align-items-center.gap-4 {
        gap: 0.75rem !important;
    }
    
    .d-flex.align-items-center.gap-4 .priority-icon,
    .d-flex.align-items-center.gap-4 .view-icon,
    .d-flex.align-items-center.gap-4 .booking-icon,
    .d-flex.align-items-center.gap-4 .contributors-icon {
        font-size: 1em;
    }
}