/* ❄️ ПОВНОЕКРАННИЙ зимовий дизайн з МАСИВНИМ снігом ❄️ */

/* Модальне вікно для фото у стилі проекту */
.project-modal-overlay {
  background: rgba(15, 23, 42, 0.9); /* slate-900 with opacity */
  z-index: 1000 !important; /* Поверх хедера */
}

/* Контейнер модального вікна */
#imageModal {
  z-index: 1000 !important; /* Поверх хедера */
}

#imageModal > .relative {
  z-index: 1001 !important;
}

.project-modal-header {
  background: var(--win-card);
  border: 1px solid var(--win-border);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1002; /* Поверх хедера */
}

.project-image-frame {
  background: var(--win-card);
  border: 1px solid var(--win-border);
  border-radius: 0.75rem;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  z-index: 1002;
}

.project-tooltip {
  background: var(--win-card);
  border: 1px solid var(--win-border);
  color: var(--win-text);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1002;
}

/* Спрощені кнопки без складних анімацій */

@keyframes border-glow {
  0%, 100% {
    background: linear-gradient(45deg, 
      #3b82f6 0%, #60a5fa 25%, #93c5fd 50%, 
      #dbeafe 75%, #3b82f6 100%);
  }
  25% {
    background: linear-gradient(45deg, 
      #60a5fa 0%, #93c5fd 25%, #dbeafe 50%, 
      #3b82f6 75%, #60a5fa 100%);
  }
  50% {
    background: linear-gradient(45deg, 
      #93c5fd 0%, #dbeafe 25%, #3b82f6 50%, 
      #60a5fa 75%, #93c5fd 100%);
  }
  75% {
    background: linear-gradient(45deg, 
      #dbeafe 0%, #3b82f6 25%, #60a5fa 50%, 
      #93c5fd 75%, #dbeafe 100%);
  }
}

/* Кнопки для модального вікна у стилі проекту */
.project-button {
  background: var(--win-card);
  border: 1px solid var(--win-border);
  color: var(--win-text);
  position: relative;
  overflow: hidden;
  transition: all 0.1s ease;
  z-index: 1003; /* Найвищий для кнопок */
}

.project-button:hover {
  background: var(--win-hover);
  border-color: var(--win-accent);
  color: var(--win-accent);
}

.project-button:active {
  transform: none;
  transition: none;
}

.project-button-nav {
  background: var(--win-accent);
  color: white;
  border: 1px solid var(--win-accent);
  z-index: 1003;
}

.project-button-nav:hover {
  background: var(--win-accent-hover);
  border-color: var(--win-accent-hover);
}

.project-button-nav:disabled {
  background: var(--win-border);
  color: var(--win-text-secondary);
  border-color: var(--win-border);
  cursor: not-allowed;
  opacity: 0.5;
}

.project-button-zoom-reset {
  background: var(--win-accent);
  color: white;
  border: 1px solid var(--win-accent);
  font-weight: 600;
  z-index: 1003;
}

.project-button-zoom-reset:hover {
  background: var(--win-accent-hover);
  border-color: var(--win-accent-hover);
}

.project-button-close {
  background: #ef4444;
  color: white;
  border: 1px solid #ef4444;
  z-index: 1003;
}

.project-button-close:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Бейдж для лічильника у стилі проекту */
.project-badge {
  background: rgba(var(--win-accent-rgb), 0.1);
  color: var(--win-accent);
  border: 1px solid rgba(var(--win-accent-rgb), 0.3);
  backdrop-filter: blur(8px);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  position: relative;
  z-index: 1003;
}
@media (max-width: 768px) {
  .winter-modal-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .winter-button-small {
    padding: 0.5rem;
  }
  
  .winter-button-small svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .modal-snow {
    font-size: 1rem;
  }
}

/* Зимова сцена на весь екран */

/* Зимова сцена на весь екран */
.winter-scene {
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 70%),
    radial-gradient(circle at 60% 80%, rgba(147, 197, 253, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 70%, #94a3b8 100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* МАСИВНИЙ снігопад */
.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10vh;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
  animation: heavy-snowfall linear infinite;
  user-select: none;
  will-change: transform;
}

.snowflake.large {
  font-size: 2.5em;
  color: rgba(255, 255, 255, 0.95);
}

.snowflake.medium {
  font-size: 1.8em;
  color: rgba(255, 255, 255, 0.85);
}

.snowflake.small {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.75);
}

.snowflake.tiny {
  font-size: 0.6em;
  color: rgba(255, 255, 255, 0.6);
}

/* Розширені позиції для ГУСТОГО снігу */
.snowflake:nth-child(1) { left: 2%; animation-duration: 6s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 8%; animation-duration: 8s; animation-delay: 0.5s; }
.snowflake:nth-child(3) { left: 14%; animation-duration: 7s; animation-delay: 1s; }
.snowflake:nth-child(4) { left: 20%; animation-duration: 9s; animation-delay: 1.5s; }
.snowflake:nth-child(5) { left: 26%; animation-duration: 5s; animation-delay: 2s; }
.snowflake:nth-child(6) { left: 32%; animation-duration: 10s; animation-delay: 0.2s; }
.snowflake:nth-child(7) { left: 38%; animation-duration: 6.5s; animation-delay: 2.5s; }
.snowflake:nth-child(8) { left: 44%; animation-duration: 8.5s; animation-delay: 1.2s; }
.snowflake:nth-child(9) { left: 50%; animation-duration: 7.5s; animation-delay: 3s; }
.snowflake:nth-child(10) { left: 56%; animation-duration: 9.5s; animation-delay: 0.8s; }
.snowflake:nth-child(11) { left: 62%; animation-duration: 6.2s; animation-delay: 3.5s; }
.snowflake:nth-child(12) { left: 68%; animation-duration: 8.8s; animation-delay: 1.8s; }
.snowflake:nth-child(13) { left: 74%; animation-duration: 7.8s; animation-delay: 4s; }
.snowflake:nth-child(14) { left: 80%; animation-duration: 5.5s; animation-delay: 2.2s; }
.snowflake:nth-child(15) { left: 86%; animation-duration: 9.8s; animation-delay: 0.3s; }
.snowflake:nth-child(16) { left: 92%; animation-duration: 6.8s; animation-delay: 4.5s; }
.snowflake:nth-child(17) { left: 98%; animation-duration: 8.2s; animation-delay: 1.3s; }
.snowflake:nth-child(18) { left: 4%; animation-duration: 7.2s; animation-delay: 5s; }
.snowflake:nth-child(19) { left: 10%; animation-duration: 5.8s; animation-delay: 2.8s; }
.snowflake:nth-child(20) { left: 16%; animation-duration: 9.2s; animation-delay: 0.7s; }
.snowflake:nth-child(21) { left: 22%; animation-duration: 6.5s; animation-delay: 3.2s; }
.snowflake:nth-child(22) { left: 28%; animation-duration: 8.7s; animation-delay: 1.7s; }
.snowflake:nth-child(23) { left: 34%; animation-duration: 7.3s; animation-delay: 4.2s; }
.snowflake:nth-child(24) { left: 40%; animation-duration: 5.2s; animation-delay: 2.7s; }
.snowflake:nth-child(25) { left: 46%; animation-duration: 9.7s; animation-delay: 0.4s; }
.snowflake:nth-child(26) { left: 52%; animation-duration: 6.9s; animation-delay: 3.7s; }
.snowflake:nth-child(27) { left: 58%; animation-duration: 8.4s; animation-delay: 1.4s; }
.snowflake:nth-child(28) { left: 64%; animation-duration: 7.7s; animation-delay: 4.7s; }
.snowflake:nth-child(29) { left: 70%; animation-duration: 5.7s; animation-delay: 2.4s; }
.snowflake:nth-child(30) { left: 76%; animation-duration: 9.4s; animation-delay: 0.9s; }
.snowflake:nth-child(31) { left: 82%; animation-duration: 6.4s; animation-delay: 3.9s; }
.snowflake:nth-child(32) { left: 88%; animation-duration: 8.9s; animation-delay: 1.9s; }
.snowflake:nth-child(33) { left: 94%; animation-duration: 7.9s; animation-delay: 4.9s; }
.snowflake:nth-child(34) { left: 1%; animation-duration: 5.4s; animation-delay: 2.9s; }
.snowflake:nth-child(35) { left: 7%; animation-duration: 9.9s; animation-delay: 0.6s; }
.snowflake:nth-child(36) { left: 13%; animation-duration: 6.7s; animation-delay: 3.4s; }
.snowflake:nth-child(37) { left: 19%; animation-duration: 8.3s; animation-delay: 1.6s; }
.snowflake:nth-child(38) { left: 25%; animation-duration: 7.6s; animation-delay: 4.6s; }
.snowflake:nth-child(39) { left: 31%; animation-duration: 5.9s; animation-delay: 2.6s; }
.snowflake:nth-child(40) { left: 37%; animation-duration: 9.6s; animation-delay: 0.1s; }
.snowflake:nth-child(41) { left: 43%; animation-duration: 6.3s; animation-delay: 3.6s; }
.snowflake:nth-child(42) { left: 49%; animation-duration: 8.6s; animation-delay: 1.1s; }
.snowflake:nth-child(43) { left: 55%; animation-duration: 7.1s; animation-delay: 4.1s; }
.snowflake:nth-child(44) { left: 61%; animation-duration: 5.3s; animation-delay: 2.3s; }
.snowflake:nth-child(45) { left: 67%; animation-duration: 9.3s; animation-delay: 0.4s; }
.snowflake:nth-child(46) { left: 73%; animation-duration: 6.6s; animation-delay: 3.3s; }
.snowflake:nth-child(47) { left: 79%; animation-duration: 8.1s; animation-delay: 1.5s; }
.snowflake:nth-child(48) { left: 85%; animation-duration: 7.4s; animation-delay: 4.4s; }
.snowflake:nth-child(49) { left: 91%; animation-duration: 5.6s; animation-delay: 2.1s; }
.snowflake:nth-child(50) { left: 97%; animation-duration: 9.1s; animation-delay: 0.3s; }

@keyframes heavy-snowfall {
  0% {
    transform: translateY(-10vh) rotate(0deg) translateX(0);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(50px);
    opacity: 0;
  }
}

/* Подарунки що падають */
.gifts-falling {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.gift {
  position: absolute;
  top: -10vh;
  font-size: 2em;
  animation: gift-fall-slow linear infinite;
}

.gift:nth-child(1) { left: 15%; animation-duration: 35s; animation-delay: 0s; }
.gift:nth-child(2) { left: 30%; animation-duration: 40s; animation-delay: 10s; }
.gift:nth-child(3) { left: 45%; animation-duration: 32s; animation-delay: 20s; }
.gift:nth-child(4) { left: 60%; animation-duration: 38s; animation-delay: 30s; }
.gift:nth-child(5) { left: 75%; animation-duration: 42s; animation-delay: 40s; }
.gift:nth-child(6) { left: 20%; animation-duration: 36s; animation-delay: 50s; }
.gift:nth-child(7) { left: 80%; animation-duration: 39s; animation-delay: 60s; }

@keyframes gift-fall-slow {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  97% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ПОТУЖНИЙ сніг на землі */
.snow-ground {
  background: linear-gradient(to top, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(248, 250, 252, 0.9) 40%, 
    rgba(241, 245, 249, 0.7) 70%, 
    transparent 100%);
  box-shadow: 
    inset 0 15px 30px rgba(255, 255, 255, 0.5),
    inset 0 5px 10px rgba(59, 130, 246, 0.1);
  z-index: 0;
  height: 8rem !important;
}

/* Зимові картки - повноекранні */
.winter-card {
  backdrop-filter: blur(15px);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.winter-table-card {
  backdrop-filter: blur(20px);
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

/* Додаткові анімації для снігових вихорів */
@keyframes snowWhirl {
  0% {
    transform: translateY(-10vh) rotate(0deg) translateX(0) scale(1);
    opacity: 1;
  }
  25% {
    transform: translateY(25vh) rotate(90deg) translateX(30px) scale(1.2);
    opacity: 0.9;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(-20px) scale(0.8);
    opacity: 0.7;
  }
  75% {
    transform: translateY(75vh) rotate(270deg) translateX(40px) scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(-10px) scale(0.9);
    opacity: 0;
  }
}

/* Додаткова анімація атмосфери */
@keyframes winter-atmosphere {
  0%, 100% {
    filter: brightness(1) contrast(1) saturate(1);
  }
  25% {
    filter: brightness(1.1) contrast(1.1) saturate(1.05);
  }
  50% {
    filter: brightness(0.95) contrast(1.05) saturate(0.95);
  }
  75% {
    filter: brightness(1.05) contrast(1.02) saturate(1.02);
  }
}

/* Мерехтіння для снігу */
@keyframes snowSparkle {
  0%, 100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(135, 206, 250, 0.8);
    transform: scale(1.1);
  }
}

.snowflake.sparkle {
  animation: snowSparkle 2s ease-in-out infinite;
}

/* Позиції та анімації для сніжинок */
.snowflake:nth-child(1) {
  left: 5%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.snowflake:nth-child(2) {
  left: 15%;
  animation-duration: 12s;
  animation-delay: 1s;
}

.snowflake:nth-child(3) {
  left: 25%;
  animation-duration: 10s;
  animation-delay: 2s;
}

.snowflake:nth-child(4) {
  left: 35%;
  animation-duration: 14s;
  animation-delay: 0.5s;
}

.snowflake:nth-child(5) {
  left: 45%;
  animation-duration: 16s;
  animation-delay: 3s;
}

.snowflake:nth-child(6) {
  left: 55%;
  animation-duration: 9s;
  animation-delay: 2s;
}

.snowflake:nth-child(7) {
  left: 65%;
  animation-duration: 11s;
  animation-delay: 1.5s;
}

.snowflake:nth-child(8) {
  left: 75%;
  animation-duration: 13s;
  animation-delay: 0.8s;
}

.snowflake:nth-child(9) {
  left: 85%;
  animation-duration: 15s;
  animation-delay: 2.5s;
}

.snowflake:nth-child(10) {
  left: 95%;
  animation-duration: 7s;
  animation-delay: 1.2s;
}

.snowflake:nth-child(11) {
  left: 10%;
  animation-duration: 18s;
  animation-delay: 4s;
}

.snowflake:nth-child(12) {
  left: 30%;
  animation-duration: 6s;
  animation-delay: 0.3s;
}

.snowflake:nth-child(13) {
  left: 50%;
  animation-duration: 20s;
  animation-delay: 5s;
}

.snowflake:nth-child(14) {
  left: 70%;
  animation-duration: 8.5s;
  animation-delay: 1.8s;
}

.snowflake:nth-child(15) {
  left: 90%;
  animation-duration: 12.5s;
  animation-delay: 3.5s;
}

@keyframes snowfall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* Подарунки що падають */
.gifts-falling {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.gift {
  position: absolute;
  top: -10vh;
  font-size: 1.5em;
  animation: gift-fall linear infinite;
}

.gift:nth-child(1) {
  left: 20%;
  animation-duration: 25s;
  animation-delay: 0s;
}

.gift:nth-child(2) {
  left: 40%;
  animation-duration: 30s;
  animation-delay: 8s;
}

.gift:nth-child(3) {
  left: 60%;
  animation-duration: 22s;
  animation-delay: 15s;
}

.gift:nth-child(4) {
  left: 80%;
  animation-duration: 28s;
  animation-delay: 22s;
}

.gift:nth-child(5) {
  left: 10%;
  animation-duration: 35s;
  animation-delay: 30s;
}

@keyframes gift-fall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* Сніг на землі */
.snow-ground {
  background: linear-gradient(to top, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(248, 250, 252, 0.7) 30%, 
    rgba(241, 245, 249, 0.5) 60%, 
    transparent 100%);
  box-shadow: inset 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Зимові картки */
.winter-card {
  backdrop-filter: blur(10px);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.winter-table-card {
  backdrop-filter: blur(15px);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Зимова таблиця */
.winter-table {
  background: rgba(255, 255, 255, 0.8);
}

.winter-table thead tr {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.winter-table tbody tr.winter-row {
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.winter-table tbody tr.winter-row:nth-child(even) {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.8), rgba(219, 234, 254, 0.6));
}

.winter-table tbody tr.winter-row:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

/* Зимові кнопки */
.winter-button {
  position: relative;
  overflow: hidden;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.winter-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.winter-button:hover::before {
  width: 300px;
  height: 300px;
}

.winter-button-small {
  position: relative;
  overflow: hidden;
}

.winter-button-small::after {
  content: '❄️';
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.winter-button-small:hover::after {
  right: 5px;
  opacity: 1;
}

/* Зимові бейджі */
.winter-badge {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.winter-badge::before {
  content: '❄️';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7em;
  opacity: 0;
  transition: all 0.3s ease;
}

.winter-badge:hover::before {
  left: -10px;
  opacity: 1;
}

/* Анімації */
@keyframes animate-spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: animate-spin-slow 3s linear infinite;
}

/* Сніжні ефекти для hover */
.winter-hover-snow {
  position: relative;
}

.winter-hover-snow:hover::before {
  content: '❄️ ❅ ❆';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8em;
  opacity: 0;
  animation: snow-pop 1s ease-out;
}

@keyframes snow-pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* Респонсивність для мобільних */
@media (max-width: 768px) {
  .snowflake {
    font-size: 0.8em;
  }
  
  .gift {
    font-size: 1.2em;
  }
  
  .snow-ground {
    height: 15px;
  }
  
  .winter-button {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Додаткові зимові ефекти */
.winter-glow {
  box-shadow: 
    0 0 10px rgba(59, 130, 246, 0.3),
    0 0 20px rgba(147, 197, 253, 0.2),
    0 0 30px rgba(219, 234, 254, 0.1);
}

/* Анімація для заголовку */
.winter-title {
  background: linear-gradient(-45deg, #3b82f6, #60a5fa, #93c5fd, #dbeafe);
  background-size: 400% 400%;
  animation: winter-gradient 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes winter-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.snowflake:nth-child(1) {
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
  font-size: 1.2em;
}

.snowflake:nth-child(2) {
  left: 20%;
  animation-duration: 12s;
  animation-delay: 1s;
  font-size: 0.8em;
}

.snowflake:nth-child(3) {
  left: 30%;
  animation-duration: 10s;
  animation-delay: 2s;
  font-size: 1.5em;
}

.snowflake:nth-child(4) {
  left: 40%;
  animation-duration: 14s;
  animation-delay: 0.5s;
  font-size: 1em;
}

.snowflake:nth-child(5) {
  left: 50%;
  animation-duration: 16s;
  animation-delay: 3s;
  font-size: 1.3em;
}

.snowflake:nth-child(6) {
  left: 60%;
  animation-duration: 9s;
  animation-delay: 2s;
  font-size: 0.9em;
}

.snowflake:nth-child(7) {
  left: 70%;
  animation-duration: 11s;
  animation-delay: 1.5s;
  font-size: 1.1em;
}

.snowflake:nth-child(8) {
  left: 80%;
  animation-duration: 13s;
  animation-delay: 0.8s;
  font-size: 1.4em;
}

.snowflake:nth-child(9) {
  left: 90%;
  animation-duration: 15s;
  animation-delay: 2.5s;
  font-size: 0.7em;
}

.snowflake:nth-child(10) {
  left: 85%;
  animation-duration: 7s;
  animation-delay: 1.2s;
  font-size: 1.6em;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* Новорічні огники */
.christmas-lights {
  background: repeating-linear-gradient(
    90deg,
    #ff0000 0%,
    #ff0000 5%,
    #00ff00 5%,
    #00ff00 10%,
    #0000ff 10%,
    #0000ff 15%,
    #ffff00 15%,
    #ffff00 20%,
    #ff00ff 20%,
    #ff00ff 25%,
    #00ffff 25%,
    #00ffff 30%
  );
  animation: lights-blink 2s ease-in-out infinite;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

@keyframes lights-blink {
  0%, 100% {
    opacity: 0.8;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.3);
  }
}

/* Блиск для індикатора */
.shadow-glow {
  box-shadow: 0 0 10px currentColor;
}

/* Стилі для новорічної картки */
.christmas-card {
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Стилі для новорічної таблиці */
.christmas-table tbody tr {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.christmas-table tbody tr:nth-child(even) {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(22, 163, 74, 0.1));
}

.christmas-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(34, 197, 94, 0.2));
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Анімація для кнопок */
.holiday-buttons a {
  position: relative;
  overflow: hidden;
}

.holiday-buttons a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.holiday-buttons a:hover::before {
  width: 300px;
  height: 300px;
}

/* Стилі для статусів з новорічною темою */
.status-pending {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  color: #92400e;
  border: 1px solid #f59e0b;
}

.status-in-terminal {
  background: linear-gradient(135deg, #dcfce7, #22c55e);
  color: #166534;
  border: 1px solid #16a34a;
}

.status-departed {
  background: linear-gradient(135deg, #fee2e2, #ef4444);
  color: #991b1b;
  border: 1px solid #dc2626;
}

/* Анімація текста заголовку */
.christmas-title {
  background: linear-gradient(-45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Спеціальні ефекти для hover */
.christmas-row:hover {
  animation: row-glow 0.5s ease-in-out;
}

@keyframes row-glow {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Новорічні іконки з анімацією */
.holiday-icon {
  display: inline-block;
  animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Святкові кольори для кнопок */
.btn-christmas-red {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: 2px solid #fbbf24;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-christmas-green {
  background: linear-gradient(135deg, #16a34a, #15803d);
  border: 2px solid #fbbf24;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Спеціальні ефекти для новорічного періоду */
@media (prefers-reduced-motion: no-preference) {
  .christmas-sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
  }
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.1) rotate(180deg);
  }
}

/* Респонсивність для мобільних */
@media (max-width: 768px) {
  .snowflake {
    font-size: 0.8em;
  }
  
  .christmas-lights {
    height: 6px;
  }
  
  .holiday-buttons a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Мобільна оптимізація */
  .winter-scene {
    /* Зменшити кількість анімацій для економії батареї */
    animation: none;
  }
  
  .winter-table-card {
    margin: 0.5rem;
    border-radius: 1rem;
  }
  
  /* Приховати складні ефекти на мобільних */
  .snowfall {
    display: none;
  }
  
  .gifts-falling {
    display: none;
  }
  
  /* Оптимізація заголовків */
  .winter-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Мобільна таблиця */
  .mobile-vehicle-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
  }
  
  .mobile-vehicle-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15);
  }
  
  /* Кнопки для мобільних */
  .mobile-btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    min-width: auto;
  }
  
  /* Адаптивний текст */
  .text-responsive {
    font-size: 14px;
    line-height: 1.4;
  }
}