/* Основные стили модального окна */
.notifications-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  background: var(--season-bg-dark);
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #2d4d3a;
}

.notifications-modal.show {
  display: flex;
}

.notifications-header {
  padding: 20px 20px;
  background: var(--season-bg-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--season-bg-dark);
}

.notifications-header h3 {
  margin: 0;
  color: white;
  font-size: 18px;
  position: relative;
  top: 10px;
}

.close-modal-notif {
  position: absolute;
  top: 5px;
  right: 15px;
  color: #5177e0;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
}

.notifications-tabs {
  display: flex;
  gap: 5px;
  margin: 10px 0;
  position: relative;
  top: 10px;
}

.tab-btn {
  padding: 5px 10px;
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 12px;
  border-radius: 4px;
}

.tab-btn.active {
  background: #4ec489;
  color: white;
}



.notifications-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.notification-bell {
  position: relative;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #57ebad;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.notification-item {
  padding: 12px 20px;
  border-bottom: 1px solid #2d4d3a;
  cursor: pointer;
  transition: background 0.2s;
}

.notification-item:hover {
  background: rgba(155, 81, 224, 0.1);
}

.notification-item.unread {
  background: rgba(155, 81, 224, 0.05);
}

.notification-time {
  color: #e05151;
  font-size: 12px;
  margin-bottom: 5px;
}

.notification-text {
  color: white;
  font-size: 14px;
  margin-bottom: 5px;
}

.notification-text a {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 14px;
}

.notification-author {
  color: #e0ae51;
  font-weight: bold;
}

.empty-notifications {
  padding: 30px;
  text-align: center;
  color: #666;
}

.notifications-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #2d2d4d;
}

.show-all-btn {
  background: transparent;
  border: 1px solid #51e0a9;
  color: #9B51E0;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

/* Оверлей */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
}

.modal-overlay.show {
  display: block;
}

/* Адаптивность */
@media (max-width: 600px) {
  .notifications-modal {
    width: 95%;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 90vh;
  }

  .notifications-header h3 {
    font-size: 0;
  }
  
  .notifications-header h3::before {
    content: "🔔";
    font-size: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    margin-top: 0;
  }
}

/* Кнопка "Прочесть" */
.mark-as-read-btn {
  padding: 4px 8px;
  background: rgba(155, 81, 224, 0.1);
  border: 1px solid #9B51E0;
  color: #9B51E0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  white-space: nowrap;
}

.mark-as-read-btn:hover {
  background: rgba(155, 81, 224, 0.2);
}

/* Кнопка "Прочесть все" */
.read-all-btn {
  display: block;
  width: 90%;
  margin: 0 auto;
  padding: 8px;
  margin-bottom: 10px;
  background: rgba(155, 81, 224, 0.1);
  border: 1px solid #9B51E0;
  color: #9B51E0;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.read-all-btn:hover {
  background: rgba(155, 81, 224, 0.2);
}

.notifications-list {
  max-height: 60vh;
  overflow-y: auto;
}

.notification-text {
  white-space: nowrap; /* Запрещаем перенос строк */
  overflow: hidden; /* Скрываем текст, который не помещается */
  text-overflow: ellipsis; /* Добавляем многоточие в конце */
  max-width: 300px; /* Или любое другое значение, которое подходит под твой дизайн */
}

.notification-content a.user-mention {
  color: #9B51E0;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.notification-content a.user-mention:hover {
  text-decoration: underline;
}

.user-mention {
  color: #6a1b9a;
  font-weight: bold;
  text-decoration: none;
}
.user-mention:hover {
  text-decoration: underline;
}

#notification-bell-container {
    top: 15px;
    right: 20px;
  }



@media (max-width: 1024px) {
  #notification-bell-container {
    top: 10px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  #notification-bell-container {
    top: 8px;
    right: 70px;
  }
}

/* ============================================================
   УВЕДОМЛЕНИЯ — РЕДИЗАЙН ПОД НОВЫЙ СТИЛЬ
   ============================================================ */
.notifications-modal {
  background: linear-gradient(135deg, var(--season-bg-dark), var(--season-bg-darker)) !important;
  border: 1px solid var(--season-primary) !important;
  border-radius: 16px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
              0 0 60px rgba(134, 134, 134, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(16px) saturate(180%);
  overflow: hidden;
}

/* Угловые "скобки" для уведомлений */
.notifications-modal::before,
.notifications-modal::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--primary-color);
  border-style: solid;
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

.notifications-modal::before {
  top: 8px; left: 8px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}

.notifications-modal::after {
  bottom: 8px; right: 8px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

.notifications-header {
  background: var(--season-bg-dark) !important;
  border-bottom: 1px solid var(--season-secondary) !important;
  position: relative;
  padding: 18px 20px !important;
}

/* Сканирующая линия под шапкой уведомлений */
.notifications-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--primary-color) 30%,
    var(--secondary-color) 70%,
    transparent 100%);
  opacity: 0.7;
}

.notifications-header h3 {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  font-size: 17px !important;
  top: 8px !important;
}

.notifications-header h3::before {
  content: '// ';
  font-family: 'Courier New', monospace;
  -webkit-text-fill-color: var(--primary-color);
  opacity: 0.7;
}

.close-modal-notif {
  color: var(--text-muted) !important;
  transition: color 0.2s, transform 0.2s !important;
}

.close-modal-notif:hover {
  color: var(--primary-color) !important;
  transform: rotate(90deg);
}

/* Вкладки уведомлений */
.notifications-tabs {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 3px;
  gap: 0 !important;
}

.tab-btn {
  border-radius: 22px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-muted) !important;
  transition: all 0.25s ease !important;
}

.tab-btn.active {
  background: var(--gradient) !important;
  color: white !important;
  box-shadow: 0 4px 12px var(--season-secondary);
}

.tab-btn:not(.active):hover {
  color: var(--primary-color) !important;
}

/* Колокольчик уведомлений */
.notification-bell {
  transition: transform 0.2s;
}

.notification-bell:hover {
  transform: scale(1.15);
}

.notification-badge {
  background: var(--gradient) !important;
  color: white !important;
  box-shadow: 0 0 0 2px rgba(5, 15, 6, 0.9),
              0 0 12px rgba(62, 192, 73, 0.6) !important;
  font-weight: 700 !important;
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(5, 15, 6, 0.9), 0 0 12px rgba(62, 192, 73, 0.6); }
  50%      { box-shadow: 0 0 0 2px rgba(5, 15, 6, 0.9), 0 0 20px rgba(62, 192, 73, 1); }
}

/* Элементы уведомлений */
.notification-item {
  border-bottom: 1px solid rgba(62, 192, 73, 0.1) !important;
  padding: 14px 20px !important;
  position: relative;
  transition: all 0.25s ease !important;
}

.notification-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}

.notification-item:hover {
  background: rgba(62, 192, 73, 0.06) !important;
}

.notification-item:hover::before { opacity: 1; }

.notification-item.unread {
  background: rgba(62, 192, 73, 0.04) !important;
}

.notification-item.unread::before { opacity: 0.6; }

.notification-time {
  color: var(--text-muted) !important;
  font-family: 'Courier New', monospace;
  font-size: 11px !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.notification-text {
  color: var(--text-primary) !important;
  font-size: 14px !important;
  line-height: 1.5;
}

.notification-text a,
.notification-content a.user-mention,
.user-mention {
  color: var(--primary-color) !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.notification-text a:hover,
.user-mention:hover {
  color: var(--secondary-color) !important;
  text-decoration: underline;
}

.notification-author {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700 !important;
}

.empty-notifications {
  color: var(--text-muted) !important;
  font-size: 14px;
  padding: 40px 20px !important;
}

.empty-notifications::before {
  content: '∅';
  display: block;
  font-size: 32px;
  color: var(--primary-color);
  opacity: 0.4;
  margin-bottom: 12px;
}

/* Кнопки в уведомлениях */
.mark-as-read-btn,
.read-all-btn,
.show-all-btn {
  background: rgba(62, 192, 73, 0.1) !important;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  transition: all 0.25s ease !important;
}

.mark-as-read-btn:hover,
.read-all-btn:hover,
.show-all-btn:hover {
  background: rgba(62, 192, 73, 0.2) !important;
  box-shadow: 0 0 12px rgba(62, 192, 73, 0.3);
  transform: translateY(-1px);
}

.notifications-footer {
  border-top: 1px solid rgba(62, 192, 73, 0.15) !important;
  background: rgba(0, 31, 9, 0.4);
}

/* Скроллбар внутри уведомлений */
.notifications-list::-webkit-scrollbar,
.notifications-content::-webkit-scrollbar {
  width: 4px;
}

.notifications-list::-webkit-scrollbar-thumb,
.notifications-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
  opacity: 0.6;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  .notifications-modal::before,
  .notifications-modal::after { display: none; }
}



/* ============================================================
   КОНТЕЙНЕР КОЛОКОЛЬЧИКА — встраиваем в header-controls
   (отменяем позиционирование top/right)
   ============================================================ */

#notification-bell-container {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  #notification-bell-container {
    top: auto !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  #notification-bell-container {
    top: auto !important;
    right: auto !important;
  }
}

.notification-bell {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--season-bg-dark);
  border: 1px solid var(--season-secondary);
  color: var(--primary-color);
  transition: all 0.25s ease;
  font-size: 20px !important;
  cursor: pointer;
}

.notification-bell:hover {
  background: rgba(62, 192, 73, 0.15) !important;
  border-color: var(--primary-color);
  box-shadow: 0 0 16px rgba(62, 192, 73, 0.3);
  transform: translateY(-1px);
}


/* ФИКС ХУЙНИ НА ТЕЛЕФОНАЗ */
html {
  background-color: var(--bg-darker);  /* solid подложка */
  background-image: var(--bg-gradient);
  color-scheme: dark;                   /* тёмный overscroll/scrollbar */
}

body {
  background-color: var(--bg-darker);  /* такая же подложка на body */
  background-image: var(--bg-gradient);
  min-height: 100vh;                    /* чтобы body всегда покрывал viewport */
  /* НЕТ background-attachment: fixed на мобильных */
}

@media (hover: hover) and (pointer: fine) {
  html, body {
    background-attachment: fixed;  /* возвращаем только для десктопа */
  }
}

@media (max-width: 768px) {
#canvas-bg {
display: none;
animation: none;
}
}