/* ===== CSS TOKENS & DESIGN SYSTEM ===== */
:root {
  /* Colors */
  --header-bg: #0E0E12;
  --text-primary: #FFFFFF;
  --text-secondary: #B9BBC6;
  --accent: #FF0054;
  --accent-hover: #FF3366;
  
  /* Spacing Scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  
  /* Layout */
  --container-max: 1536px;
  --header-height: 86px;
}

/* ===== HEADER LAYOUT ===== */
.header {
  position: relative;
  background: rgba(21, 21, 36, 0.7);
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color var(--transition-base);
  overflow: visible;
  z-index: 1000;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
  padding-top: 0; /* Нет отступов - контент идет сразу после шапки */
}

/* Убираем возможные конфликтующие overflow у родителей */
body, html {
  overflow-x: hidden; /* Только горизонтальный overflow */
  overflow-y: auto; /* Вертикальный скролл разрешен */
}

.header.scrolled {
  background: rgba(21, 21, 36, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
  height: var(--header-height);
  overflow: visible;
}

.header__content {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-6);
  min-width: 0;
  overflow: visible;
}

/* ===== LEFT BLOCK (LOGO + ICONS) ===== */
.header__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
  min-width: 0;
}

/* ===== НАВИГАЦИЯ ===== */
.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-base);
  position: relative;
}

.header__nav-link:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.header__nav-link--active {
  color: var(--color-primary);
  background: rgba(255, 0, 84, 0.1);
}

.header__nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  transition: transform var(--transition-fast);
}

.header__logo:hover {
  transform: scale(1.02);
}

.header__logo:focus {
  outline: none;
}

.header__logo-image {
  height: 50px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  flex-shrink: 1;
}

.header__icons {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.header__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  position: relative;
  z-index: 1;
}

.header__icon:hover {
  color: var(--text-primary);
}

.header__icon:focus {
  outline: none;
}

.header__icon--twitch {
  background: rgb(145 70 255 / 30%);
  /* border-color: rgba(145, 70, 255, 0.3); */
  /* color: #9146ff; */
}

.header__icon--twitch:hover {
  background: rgba(145, 70, 255, 0.3);
  border-color: rgba(145, 70, 255, 0.5);
  /* color: #a855f7; */
}

.header__icon--youtube {
  background: rgb(255 0 0 / 30%);
  /* border-color: rgba(255, 0, 0, 0.3); */
  color: #ffffff;
}

.header__icon--youtube:hover {
  background: rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.5);
  color: #ffffff;
}

.header__icon--telegram {
  background: rgb(0 123 255 / 30%);
  /* border-color: rgba(255, 0, 0, 0.3); */
  color: #ffffff;
}

.header__icon--telegram:hover {
  background: #0080ff4d;
  border-color: rgb(0 123 255 / 50%);
  color: #ffffff;
}

/* ===== SPACER ===== */
.header__spacer {
  flex: 1;
  min-width: var(--space-4);
}

/* ===== RIGHT BLOCK (NOTIFICATIONS + BALANCE + PROFILE) ===== */
.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
  min-width: 0;
  overflow: visible;
}

/* ===== NOTIFICATIONS ===== */
.header__notifications {
  position: relative;
  overflow: visible;
  z-index: 1000;
}

.header__notification-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.header__notification-btn:hover {
  background: rgba(255, 0, 84, 0.1);
  border-color: rgba(255, 0, 84, 0.2);
  color: var(--accent);
}

.header__notification-btn:focus {
  outline: none;
}

.header__notification-btn svg {
  width: 23px;
  height: 26px;
  fill: currentColor;
}

.header__notification-badge {
  position: absolute;
  width: 28px;
  height: 28px;
  background: #ff2962;
  top: 0;
  right: -8px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--header-bg);
}

/* ===== Notifications dropdown ===== */
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 360px;
  max-height: 420px;
  background: rgba(20,20,26,0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 100000;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.notif-title { font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.notif-mark-all {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
}
.notif-mark-all:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.32); }

.notif-list {
  max-height: 320px;
  overflow: auto;
}
.notif-empty {
  color: var(--text-secondary);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}
.notif-item {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.notif-item.is-read { opacity: 0.7; }
.ni-main { display:flex; align-items:center; justify-content: space-between; gap: 8px; }
.ni-title { color: var(--text-primary); font-weight: var(--font-weight-medium); }
.ni-time { color: var(--text-secondary); font-size: 12px; }
.ni-body { color: var(--text-secondary); margin-top: 6px; white-space: pre-line; }
.ni-mark {
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
}
.ni-mark:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.32); }

.notif-footer {
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.02);
}
.notif-more { color: var(--text-secondary); text-decoration: none; }
.notif-more:hover { color: var(--text-primary); }

/* ===== SOUND CONTROL ===== */
.header__sound {
  position: relative;
  overflow: visible;
  z-index: 1000;
}

.header__sound-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.header__sound-btn:hover {
  background: rgba(255, 0, 84, 0.1);
  border-color: rgba(255, 0, 84, 0.2);
  color: var(--accent);
}

.header__sound-btn:focus {
  outline: none;
}

.header__sound-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ===== Sound dropdown ===== */
.sound-dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 8px);
  width: 50px; /* Ширина как у иконки */
  height: 140px; /* Увеличенный тултип для шкалы 100px */
  background: rgba(20,20,26,0.8);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 100000;
}

.sound-header {
  display: none;
}

.sound-controls {
  padding: var(--space-3);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.sound-slider {
  width: 8px;
  height: 100px; /* Высота шкалы 100px */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none !important;
  border: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  writing-mode: bt-lr; /* Вертикальная ориентация */
  -webkit-appearance: slider-vertical !important;
  position: relative;
  
  /* Агрессивно убираем все браузерные стили */
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #FF0054 !important;
  accent-color: #FF0054 !important;
}

/* Убираем все браузерные стили для трека */
.sound-slider::-webkit-slider-track {
  background: transparent;
  border: none;
}

.sound-slider::-moz-range-track {
  background: transparent;
  border: none;
}

/* Заливка полоски от 0 до позиции кружочка */
.sound-slider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--fill-height, 0%);
  background: var(--accent);
  border-radius: 4px;
  transition: height 0.1s ease;
}

.sound-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  background: #FF0054 !important; /* Принудительно розовый */
  background-color: #FF0054 !important;
  border: 0 !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all var(--transition-base);
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
  
  /* Дополнительные стили для перекрытия браузерных */
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.sound-slider::-webkit-slider-thumb:hover {
  background: #FF3366 !important; /* Светло-розовый при наведении */
  transform: scale(1.1);
}

.sound-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #FF0054 !important; /* Принудительно розовый для Firefox */
  border-radius: 50% !important;
  border: none !important;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: none !important;
  outline: none !important;
}

.sound-slider::-moz-range-thumb:hover {
  background: #FF3366 !important; /* Светло-розовый при наведении для Firefox */
  transform: scale(1.1);
}

.sound-value {
  display: none; /* Убираем текст с процентами */
}

/* ===== BALANCE ===== */
.header__balance {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  background: rgb(255 255 255 / 4%);
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  border-radius: var(--radius-md);
  min-height: 50px;
  min-width: 120px; /* Фиксируем минимальную ширину */
  flex-shrink: 0; /* Предотвращаем сжатие */
}

.header__balance-content {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header__balance-amount {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  min-width: 80px; /* Фиксируем минимальную ширину для текста */
  text-align: right; /* Выравниваем по правому краю */
  font-variant-numeric: tabular-nums; /* Моноширинные цифры */
  white-space: nowrap; /* Предотвращаем перенос */
}

.header__balance-coin {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ===== TOP UP BUTTON ===== */
.header__topup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.header__topup:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #FF4D7A 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.header__topup:focus {
  outline: none;
}

.header__topup:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.header__topup svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ===== PROFILE ===== */
.header__profile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-1);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-base);
  min-height: 44px;
}

.header__profile:hover {
  background: rgba(255, 255, 255, 0.05);
}

.header__profile:focus {
  outline: none;
}

.header__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition-base);
}

.header__profile:hover .header__avatar {
  border-color: rgba(255, 255, 255, 0.2);
}

.header__profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__profile-name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  line-height: 1.2;
}

.header__profile-status {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile (up to 480px) */
@media (max-width: 768px) {
  .header__container {
    padding: 0 var(--space-3);
  }
  
  .header__content {
    gap: var(--space-4);
    justify-content: space-between;
  }
  
  .header__left {
    gap: 0;
  }
  
  .header__icons {
    display: none;
  }
  
  .header__spacer {
    display: none;
  }
  
  .header__right {
    gap: var(--space-3);
  }
  
  .header__notifications {
    display: none;
  }
  
  .header__logo-image {
    height: 40px;
    max-width: 180px;
  }
  
  .header__balance {
    padding: var(--space-2) var(--space-3);
    min-height: 44px;
  }
  
  .header__balance-coin {
    width: 20px;
    height: 20px;
  }
  
  .header__topup {
    width: 40px;
    height: 40px;
  }
  
  .header__topup svg {
    width: 18px;
    height: 18px;
  }
  
  .header__avatar {
    width: 36px;
    height: 36px;
  }
  
  .header__profile-name {
    display: none;
  }
  
  .twitch-login-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
  }
  
  .twitch-login-btn .twitch-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .header__container {
    padding: 0 var(--space-2);
  }
  
  .header__content {
    gap: var(--space-2);
    justify-content: space-between;
  }
  
  .header__logo-image {
    height: 35px;
    max-width: 150px;
  }
  
  .header__balance {
    padding: var(--space-1) var(--space-2);
    min-height: 40px;
  }
  
  .header__balance-amount {
    font-size: var(--font-size-sm);
  }
  
  .header__balance-coin {
    width: 18px;
    height: 18px;
  }
  
  .header__topup {
    width: 36px;
    height: 36px;
  }
  
  .header__topup svg {
    width: 16px;
    height: 16px;
  }
  
  .header__avatar {
    width: 32px;
    height: 32px;
  }
  
  .twitch-login-btn {
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-xs);
  }
  
  .twitch-login-btn .twitch-icon {
    width: 14px;
    height: 14px;
  }
}

/* Tablet (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .header__balance-text {
    display: none;
  }
  
  .header__profile-name {
    display: none;
  }
}

/* Desktop (769px and up) */
@media (min-width: 769px) {
  .header__balance-text {
    display: block;
  }
  
  .header__profile-name {
    display: block;
  }
}

/* Large Desktop (1024px and up) */
@media (min-width: 1024px) {
  .header__container {
    padding: 0 var(--space-6);
  }
  
  .header__content {
    gap: var(--space-8);
  }
  
  .header__left {
    gap: var(--space-6);
  }
  
  .header__right {
    gap: var(--space-6);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .header__logo,
  .header__icon,
  .header__notification-btn,
  .header__topup,
  .header__profile,
  .header__avatar {
    transition: none;
  }
}

/* ===== FOCUS MANAGEMENT ===== */
.header__logo:focus-visible,
.header__icon:focus-visible,
.header__notification-btn:focus-visible,
.header__topup:focus-visible,
.header__profile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .header {
    border-bottom: 2px solid var(--text-primary);
  }
  
  .header__icon,
  .header__notification-btn {
    border: 2px solid var(--text-secondary);
  }
  
  .header__balance {
    border: 2px solid var(--text-secondary);
  }
}

/* КРИТИЧЕСКИ ВАЖНО: Принудительный розовый кружочек слайдера */
#sound-slider::-webkit-slider-thumb,
.sound-slider::-webkit-slider-thumb,
input[type="range"]::-webkit-slider-thumb {
  background: #FF0054 !important;
  background-color: #FF0054 !important;
}

#sound-slider::-moz-range-thumb,
.sound-slider::-moz-range-thumb,
input[type="range"]::-moz-range-thumb {
  background: #FF0054 !important;
  background-color: #FF0054 !important;
}

/* ===== NOTIFICATION TOOLTIP STYLES ===== */

/* CSS переменные для блюра */
:root {
  --tooltip-blur: blur(20px);
  --tooltip-bg: rgba(21, 21, 36, 0.4);
}

.notification-tooltip {
  position: absolute; /* Прикрепляем к шапке */
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 425px;
  /* max-height: 500px; */
  background: rgb(21 21 36); /* 93% непрозрачности */
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 1001; /* Выше чем header */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-tooltip--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.notification-tooltip__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden; /* Скрываем переполнение контента */
  border-radius: 12px; /* Скругление для контента */
}

/* Header */
.notification-tooltip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  /* Убираем обводку */
  background: transparent;
}

.notification-tooltip__title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
}

.notification-tooltip__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #ffffff17;
  border: none;
  border-radius: 31px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-tooltip__close:hover {
  background: #ff195d26;
  color: var(--text-primary);
}

/* Body */
.notification-tooltip__body {
  flex: 1;
  overflow-y: auto;
  max-height: 350px;
  padding: 8px 0;
}

.notification-tooltip__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.notification-tooltip__error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-error);
  font-size: 14px;
}

/* Empty State */
.notification-tooltip__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.notification-tooltip__empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.notification-tooltip__empty p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Notification Items */
.notification-tooltip__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  /* Убираем обводку */
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-tooltip__item--unread {
  background: rgba(255, 0, 127, 0.1);
  /* Убираем левую обводку */
}

.notification-tooltip__item--unread:hover {
  background: rgba(255, 0, 127, 0.1);
}

.notification-tooltip__item--read {
  opacity: 0.7;
}

.notification-tooltip__item--read:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

/* Icon */
.notification-tooltip__item-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.notification-tooltip__icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 0, 127, 0.1);
  border-radius: 8px;
  color: var(--accent-primary);
}

.notification-tooltip__item--read .notification-tooltip__icon-bg {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

/* Content */
.notification-tooltip__item-content {
  flex: 1;
  min-width: 0;
}

.notification-tooltip__item-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.notification-tooltip__item--read .notification-tooltip__item-title {
  color: var(--text-secondary);
}

.notification-tooltip__item-text {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-tooltip__item-time {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Footer */
.notification-tooltip__footer {
  padding: 12px 20px;
  /* Убираем обводку */
  background: transparent;
}

.notification-tooltip__archive-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none; /* Убираем обводку */
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-tooltip__archive-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Scrollbar */
.notification-tooltip__body::-webkit-scrollbar {
  width: 4px;
}

.notification-tooltip__body::-webkit-scrollbar-track {
  background: transparent;
}

.notification-tooltip__body::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 2px;
}

.notification-tooltip__body::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* Responsive */
@media (max-width: 480px) {
  .notification-tooltip {
    width: 320px;
    right: -10px;
  }
  
  .notification-tooltip__header,
  .notification-tooltip__item,
  .notification-tooltip__footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Animation for new notifications */
@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification-tooltip__item {
  animation: notificationSlideIn 0.3s ease-out;
}


