.paywall-blur {
  filter: blur(10px) !important;
  pointer-events: none !important;
  user-select: none !important;
  transition: filter 0.3s ease;
}

/* Стили для Лунного Календаря Sprint 25.27 */
.lunar-neon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px;
}
.lunar-day-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}
.lunar-day-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.lunar-day-card .day-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.lunar-day-card .day-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lunar-day-card.active-day {
  transform: scale(1.18);
  z-index: 5;
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--neon-color, var(--gold)) !important;
  box-shadow: 0 0 20px var(--neon-shadow, rgba(226, 184, 83, 0.5)) !important;
  animation: pulse-neon 2s infinite alternate;
}
@keyframes pulse-neon {
  0% {
    box-shadow: 0 0 15px var(--neon-shadow);
  }
  100% {
    box-shadow: 0 0 25px var(--neon-shadow);
  }
}

.element-fire {
  --neon-color: #ef4444;
  --neon-shadow: rgba(239, 68, 68, 0.6);
}
.element-water {
  --neon-color: #3b82f6;
  --neon-shadow: rgba(59, 130, 246, 0.6);
}
.element-earth {
  --neon-color: #10b981;
  --neon-shadow: rgba(16, 185, 129, 0.6);
}
.element-air {
  --neon-color: #8b5cf6;
  --neon-shadow: rgba(139, 92, 246, 0.6);
}

.lunar-art-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: #090614;
  border: 1px solid rgba(226, 184, 83, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(226, 184, 83, 0.15);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.lunar-art-container::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(226, 184, 83, 0.35);
  border-radius: 14px;
  pointer-events: none;
  z-index: 3;
}
.lunar-art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease;
}
.lunar-art-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 8, 18, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.lunar-art-overlay-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
  margin-bottom: 12px;
  line-height: 1.4;
}

.lunar-timeline {
  position: relative;
  margin: 20px 0;
  padding-left: 30px;
}
.lunar-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--pink));
  box-shadow: 0 0 8px rgba(226, 184, 83, 0.5);
}
.lunar-timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.lunar-timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.lunar-timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lunar-timeline-time {
  font-weight: 800;
  color: #fff;
  font-size: 0.9rem;
}
.lunar-timeline-sign {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 760px) {
  #active-age-badge {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding: 4px 8px !important;
    font-size: 0.76rem !important;
  }

  table:has(#matrix-ages-body) {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
  }

  table:has(#matrix-ages-body) th,
  table:has(#matrix-ages-body) td {
    min-width: 0;
    padding: 7px 6px !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  table:has(#matrix-ages-body) th:nth-child(1),
  table:has(#matrix-ages-body) td:nth-child(1) {
    width: 24%;
  }

  table:has(#matrix-ages-body) th:nth-child(2),
  table:has(#matrix-ages-body) td:nth-child(2) {
    width: 18%;
  }

  table:has(#matrix-ages-body) th:nth-child(3),
  table:has(#matrix-ages-body) td:nth-child(3) {
    width: 58%;
  }
}

/* Мобильная адаптивность для экранов 390px/430px */
@media (max-width: 480px) {
  .lunar-neon-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
    padding: 4px !important;
  }
  .lunar-day-card {
    border-radius: 10px !important;
    aspect-ratio: 1 / 1.1 !important;
    padding: 6px 4px !important;
  }
  .lunar-day-card .day-num {
    font-size: 0.95rem !important;
    margin-bottom: 2px !important;
  }
  .lunar-day-card .day-label {
    font-size: 0.5rem !important;
  }
  .lunar-art-container {
    max-width: 280px !important;
  }
}
