html {
  scroll-behavior: smooth;
}

#tour-box[data-arrow="left"]::after {
 right: -6px;
 top: 50%;
 transform: translateY(-50%) rotate(45deg);
}

#tour-box[data-arrow="right"]::after {
 left: -6px;
 top: 50%;
 transform: translateY(-50%) rotate(45deg);
}

/* OVERLAY */

#tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  opacity: 0;
  transition: .4s ease;
  pointer-events: auto;
}

#tour-overlay.active {
  opacity: 1;
}

#tour-overlay:not(.active) {
  pointer-events: none;
}


/* TOOLTIP */

#tour-box {
  display: none;
  position: fixed;
  max-width: 360px;
  background: rgba(20,20,30,.92);
  border-radius: 18px;
  padding: 18px;
  color: white;
  z-index: 999999;
  opacity: 0;
  transform: translateY(15px);
  transition: .35s ease;
}

#tour-box.active {
  opacity: 1;
  transform: translateY(0);
}

#tour-box::after {
 content:"";
 position:absolute;
 width:12px;
 height:12px;
 background:rgba(20,20,30,.92);
}

/* arrow up (tooltip bottom) */
#tour-box[data-arrow="top"]::after {
 top:-6px;
 left:50%;
 transform:translateX(-50%) rotate(45deg);
}

/* arrow down (tooltip top) */
#tour-box[data-arrow="bottom"]::after {
 bottom:-6px;
 left:50%;
 transform:translateX(-50%) rotate(45deg);
}

/* arrow left (tooltip right) */
#tour-box[data-arrow="left"]::after {
 left:-6px;
 top:50%;
 transform:translateY(-50%) rotate(45deg);
}

/* arrow right (tooltip left) */
#tour-box[data-arrow="right"]::after {
 right:-6px;
 top:50%;
 transform:translateY(-50%) rotate(45deg);
}


/* TARGET */

.tour-target {
  position: relative;
  z-index: 10001 !important;
  border-radius: 12px;
  box-shadow:
    0 0 0 3px rgba(80,120,255,.8),
    0 0 30px rgba(80,120,255,.4);
  transition: .3s ease;
}


/* ACTIONS */

.tour-actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

#tour-next {
  background: linear-gradient(135deg,#4f7cff,#7b5cff);
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

#tour-skip {
  background: transparent;
  border: none;
  color: #bbb;
  cursor: pointer;
}

#tour-progress {
  font-size: 12px;
  opacity: .7;
  margin-bottom: 6px;
}


/* WELCOME + FINISH SCREENS */

#tour-welcome,
#tour-finish {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle,#1b1f38,#070812);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: .5s ease;
}

#tour-welcome.active,
#tour-finish.active {
  opacity: 1;
  pointer-events: all;
}

#tour-welcome h2,
#tour-finish h2 {
    font-family:"Armguard";
    font-weight: 600;
  font-size: 34px;
  margin-bottom: 10px;
}

#tour-welcome p,
#tour-finish p {
  opacity: .85;
  margin-bottom: 20px;
  max-width: 420px;
}

#tour-welcome button,
#tour-finish button {
  padding: 12px 26px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  background: linear-gradient(135deg,#4f7cff,#7b5cff);
  color: white;
  box-shadow: 0 10px 30px rgba(90,120,255,.4);
}

/* Animation */

@keyframes tourFade {
  from {opacity:0; transform:translateY(15px)}
  to {opacity:1; transform:translateY(0)}
}

#tour-title {font-size: 1.2rem;font-family:"Armguard";font-weight: 600;}
#tour-box.cookie-blocked {
  z-index: 0 !important;
  pointer-events: none !important;
}
.breadcrumb-item+.breadcrumb-item::before {
    font-family:"tabler-icons";
    font-size: 1.15rem;
    content: "\f7d8";  
}

.breadcrumb {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.breadcrumb .breadcrumb {
    margin: 0;
}

.breadcrumb .breadcrumb-item a {
    color: #4361ee;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb .breadcrumb-item a:hover {
    color: #3a56d4;
}

*::-webkit-scrollbar {
            width: 7px;
            background-color: transparent;
            transition: all 1;
            height: 4px;
        }

        *::-webkit-scrollbar-thumb {
          background-color: #94a3b8;
          border-radius: 4px;
        }

        *::-webkit-scrollbar-track {
          background-color: #f8fafc;
            display: none;
        }

        *::-webkit-scrollbar-button:single-button {
          display: none;
          height: 0;
          width: 0;
        }

        *::-webkit-scrollbar-button {
          display: none;
          height: 0;
          width: 0;
        }

.cal-sans {
    font-family: 'CalSans';
}
.cal-sans-700 {
    font-family: 'CalSans', 'Armguard';
    font-weight: 700;
}
.am-700 {
    font-family: 'Armguard';
    font-weight: 700;
}

.am-600 {
    font-family: 'Armguard';
    font-weight: 600;
}

.nav-link {
    font-family: 'Armguard';
    font-weight: 700;
}
.section-name {
    font-family: 'Armguard';
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    gap: 12px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.navbar-brand i {
    font-size: 1.9rem;
}


.list-group-item a{
    font-family: 'Armguard';
    font-weight: 700;
}

a {
    text-decoration: none;
}
.btn {
    font-family: 'Armguard', sans-serif !important;
    font-weight: 700 !important;
}

.btn-primary {
    font-weight: 700 !important;
}

.prof-avatar-circle {
    object-fit: cover;
}
/* Основные стили для sidebar и контента */
.sidebar {
    transition: all 0.3s ease;
}

.bar-logo {
    font-family: 'CalSans';
}

.alert {
    font-family: 'Armguard';
    font-weight: 700;
}

/* Анимация для карточек объявлений */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Стили для мобильной версии */
@media (max-width: 991.98px) {
    .sidebar {
        margin-bottom: 20px;
    }
    
    .offcanvas-sidebar {
        background-color: #f8f9fa;
    }
}

@media (max-width: 767.98px) {
    .card-img-top {
        height: 200px;
        object-fit: cover;
    }
    
    .premium-badge {
        font-size: 0.8rem;
    }
}

/* Стили для активного пункта меню */
.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.list-group-item.active a {
    color: white !important;
}

/* Дополнительные стили для карточек */
.card-footer {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Стили для страницы объявления */
.ad-gallery img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Стили для модального окна */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Стили для профиля продавца */
.seller-card {
    border-left: 4px solid #0d6efd;
}

.seller-avatar {
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Адаптивные стили */
@media (max-width: 767.98px) {
    .sticky-sidebar {
        position: static !important;
    }
    
    .ad-details {
        margin-top: 20px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease forwards;
}

/* Стили для Lightbox */
.lb-data .lb-caption {
    font-size: 16px;
    line-height: 1.4;
}

.lb-nav a.lb-prev, 
.lb-nav a.lb-next {
    opacity: 1;
}

/* Стили для уведомлений */
.toast {
    min-width: 300px;
}




/* Стили для страницы избранного */
.remove-favorite {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.remove-favorite:hover {
    transform: scale(1.1);
}

.favorite-card {
    transition: all 0.3s ease;
}

.favorite-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.empty-favorites {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.empty-favorites-icon {
    opacity: 0.5;
}

/* Анимация удаления */
@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}



    /* Custom Button Styles */
    .button-n1 {
        font-family: 'Armguard';
        display: inline-block;
        padding: 12px 24px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.8rem;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        background-color: #2a5298;
        color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .button-n1:hover {
        background-color: #1e3c72;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        color: white;
    }
    .button-n1:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .button-outline-n1 {
        font-family: 'Armguard';
        display: inline-block;
        padding: 12px 24px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.8rem;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: transparent;
        border: 2px solid #2a5298;
        color: white;
    }
    .button-outline-n1:hover {
        background-color: rgba(42, 82, 152, 0.1);
        transform: translateY(-2px);
    }
    .button-outline-n1:active {
        transform: translateY(0);
    }
    
    /* Premium Button */
    .button-premium {
        background-color: #ffc107;
        color: #000;
    }
    .button-premium:hover {
        background-color: #ffca28;
        color: #000;
    }
    
    /* Badge styles */
    .badge-custom {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.35em 0.65em;
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
        border-radius: 0.25rem;
        display: inline-block;
    }
    
    /* Card styles */
    .premium-card {
        border: 2px solid #ffc107;
        transition: transform 0.3s ease;
    }
    .premium-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .premium-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: linear-gradient(45deg, #ffc107, #ff9800);
        color: #000;
        font-weight: bold;
        padding: 0.25rem 0.75rem;
        border-radius: 0.25rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .is-premium {
        position: absolute;
        top: 10px;
        right: 10px;
        background: linear-gradient(45deg, #ffc107, #ff9800);
        color: #000;
        font-weight: bold;
        padding: 0.25rem 0.75rem;
        border-radius: 0.25rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        font-size: 0.8rem;
    }
    
    /* Welcome Banner */
    .welcome-banner {
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        color: white;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .banner-content {
        padding: 3rem;
        position: relative;
        z-index: 2;
    }
    .banner-title {
        font-family: 'CalSans' ,'Armguard';
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    .banner-subtitle {
        font-family: 'Armguard';
        font-weight: 700;
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        opacity: 0.9;
    }
    .banner-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .banner-image {
        max-height: 250px;
    }


/* canucumner - modern - versia 2.0 */

/* Современные уведомления */
.notification-dropdown-modern {
    --notification-bg: #ffffff;
    --notification-primary: #4361ee;
    --notification-hover: #f8f9fa;
    --notification-active: #4361ee;
    --notification-text: #2d3748;
    --notification-text-light: #718096;
    --notification-border: #e2e8f0;
    --notification-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --notification-radius: 16px;
    --notification-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-dropdown-modern {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--notification-bg);
    border: 1px solid var(--notification-border);
    border-radius: var(--notification-radius);
    box-shadow: var(--notification-shadow);
    z-index: 1050;
    min-width: 420px;
    max-width: 90vw;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.notification-dropdown-modern.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.3s ease;
}

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

.notification-dropdown-modern::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: var(--notification-bg);
    border-left: 1px solid var(--notification-border);
    border-top: 1px solid var(--notification-border);
    transform: rotate(45deg);
    z-index: 1;
}

/* Хедер уведомлений */
.notification-header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.notification-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.notification-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title-modern {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-title-modern i {
    font-size: 1.3rem;
    animation: bellRing 2s ease infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    5%, 15% { transform: rotate(15deg); }
    10%, 20% { transform: rotate(-15deg); }
}

.notification-actions-modern {
    display: flex;
    gap: 8px;
}

.notification-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.notification-btn.error:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Список уведомлений */
.notification-list-modern {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 4px;
}

.notification-list-modern::-webkit-scrollbar {
    width: 6px;
}

.notification-list-modern::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notification-list-modern::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notification-list-modern::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Элементы уведомлений */
.notification-item-modern {
    display: flex;
    padding: 16px;
    margin: 0 8px 8px;
    border-radius: 12px;
    background: var(--notification-bg);
    border: 1px solid var(--notification-border);
    cursor: pointer;
    transition: var(--notification-transition);
    position: relative;
    overflow: hidden;
}

.notification-item-modern:hover {
    border-color: var(--notification-primary);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.1);
    transform: translateX(4px);
}

.notification-item-modern.unread {
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.05) 0%, rgba(67, 97, 238, 0.02) 100%);
    border-left: 3px solid var(--notification-primary);
}

.notification-item-modern.unread::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -3px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--notification-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(67, 97, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

.notification-icon-modern {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 12px;
    font-size: 1.2rem;
}

.notification-icon-modern.info { background: #dbeafe; color: #1d4ed8; }
.notification-icon-modern.success { background: #d1fae5; color: #047857; }
.notification-icon-modern.warning { background: #fef3c7; color: #d97706; }
.notification-icon-modern.error { background: #fee2e2; color: #dc2626; }
.notification-icon-modern.system { background: #e0e7ff; color: #4f46e5; }

.notification-content-modern {
    flex: 1;
    min-width: 0;
}

.notification-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--notification-text);
    margin: 0;
    line-height: 1.2;
}

.notification-time {
    font-family:'Armguard';
    font-size: 0.7rem;
    color: var(--notification-text-light);
    white-space: nowrap;
    margin-left: 8px;
    font-weight: 600;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--notification-text-light);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-action-text {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--notification-primary);
    transition: color 0.3s ease;
}

.notification-item-modern:hover .notification-action-text {
    color: #3a56d4;
}

.notification-item-modern:hover .notification-action-text i {
    transform: translateX(3px);
}

.notification-action-text i {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

/* Футер уведомлений */
.notification-footer-modern {
    padding: 16px;
    border-top: 1px solid var(--notification-border);
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.view-all-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.view-all-btn:hover::after {
    left: 100%;
}

/* Пустое состояние */
.notification-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--notification-text-light);
}

.notification-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    font-size: 1.8rem;
    color: #9ca3af;
}

.notification-empty-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--notification-text);
}

.notification-empty-text {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.7;
}

/* Счетчик уведомлений */
.notification-counter-modern {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: counterPulse 2s infinite;
}

@keyframes counterPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .notification-dropdown-modern {
        position: fixed;
        top: 72px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: 95vw;
        max-width: 95vw;
        max-height: 80vh;
        margin: 0;
    }
    
    .notification-dropdown-modern.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .notification-dropdown-modern::before {
        display: none;
    }
    
    .notification-item-modern {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown-modern {
        min-width: 98vw;
        max-width: 98vw;
        border-radius: 12px;
    }
    
    .notification-header-modern {
        padding: 16px;
    }
    
    .notification-title-modern {
        font-size: 1rem;
    }
}



/* eji hamar  */

/* end */
