/* ============================================
   УВЕДОМЛЕНИЕ О НОВЫХ ИНСТРУКЦИЯХ
   ============================================ */
.new-notify-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffffff;
  color: #333;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 5px solid #4f46e5;
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: var(--z-tooltip);
  cursor: pointer;
  max-width: 350px;
}

.new-notify-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.new-notify-content {
  flex: 1;
}

.new-notify-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #111827;
}

.new-notify-text {
  font-size: 0.9rem;
  color: #6b7280;
}

.new-notify-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

.new-notify-close:hover {
  color: #4b5563;
}

/* ============================================
   ПОЗДРАВИТЕЛЬНОЕ ОКНО С ДНЕМ РОЖДЕНИЯ
   ============================================ */
.birthday-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.birthday-modal.show {
  opacity: 1;
  visibility: visible;
}

.birthday-modal-content {
  background: linear-gradient(
    135deg,
    #ff6b6b 0%,
    #ffd166 25%,
    #4ecdc4 50%,
    #45b7d1 75%,
    #966fd6 100%
  );
  background-size: 400% 400%;
  animation: birthdayGradientShift 8s ease infinite;
  border-radius: var(--radius-xl);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  border: 4px solid white;
  overflow: hidden;
}

@keyframes birthdayGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.birthday-modal.show .birthday-modal-content {
  transform: scale(1);
}

.birthday-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: var(--z-default);
}

.birthday-close:hover {
  background-color: white;
  transform: rotate(90deg);
}

.birthday-title {
  font-family: "Luckiest Guy", cursive;
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  animation: birthdayBounce 2s ease infinite;
}

@keyframes birthdayBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.birthday-cake {
  font-size: 4rem;
  margin: 20px 0;
  animation: birthdayCakeFloat 3s ease-in-out infinite;
}

@keyframes birthdayCakeFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* Конфетти */
.birthday-confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.7;
  animation: confettiFall 5s linear infinite;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(500px) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================
   КНОПКИ ПЕРЕКЛЮЧЕНИЯ ПРАЗДНИЧНЫХ УКРАШЕНИЙ
   ============================================ */
.christmas-toggle,
.defender-toggle,
.march8-toggle {
  position: absolute;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.christmas-toggle {
  right: 20px;
  background: linear-gradient(135deg, #0f7938 0%, #0d5a2c 100%);
}

.defender-toggle {
  right: 80px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.march8-toggle {
  right: 140px;
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.christmas-toggle:hover,
.defender-toggle:hover,
.march8-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.christmas-toggle.off,
.defender-toggle.off,
.march8-toggle.off {
  background: linear-gradient(135deg, #888888 0%, #555555 100%);
}

/* Скрытие кнопок на планшетах и мобильных */
@media (max-width: 1024px) {
  .christmas-toggle,
  .defender-toggle,
  .march8-toggle {
    display: none;
  }
}

/* ============================================
   ТОСТ-СООБЩЕНИЯ
   ============================================ */
.toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: var(--z-tooltip);
}

.toast.show {
  opacity: 1;
}
