@keyframes bounce-arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  width: 100%;
  min-width: 0;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

[data-carousel] .carousel-slide {
  min-width: 0;
  flex-shrink: 0;
  padding: 8px 6px 16px;
  box-sizing: border-box;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 22, 40, 0.75);
  color: var(--color-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background var(--transition);
}

.carousel-nav:hover {
  background: rgba(0, 212, 255, 0.85);
  color: var(--color-primary);
}

.carousel-nav.prev {
  left: 8px;
}

.carousel-nav.next {
  right: 8px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cfd6e4;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--color-accent);
}

.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #050d18;
  color: var(--color-light);
  border-radius: var(--border-radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateY(120%);
  transition: transform 0.45s ease;
  max-width: 720px;
  margin: 0 auto;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ai-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(140deg, var(--color-accent), #33e0ff);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.ai-fab:hover {
  transform: scale(1.05);
}

.ai-panel {
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: min(360px, calc(100vw - 36px));
  max-height: 70vh;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 151;
  overflow: hidden;
}

.ai-panel.is-open {
  display: flex;
}

.ai-panel header {
  padding: 14px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}

.ai-messages {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-light);
}

.ai-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 92%;
  font-size: 0.92rem;
}

.ai-bubble.bot {
  align-self: flex-start;
  background: var(--color-white);
  border: 1px solid #e3e8f0;
}

.ai-bubble.user {
  align-self: flex-end;
  background: rgba(0, 212, 255, 0.18);
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 14px;
  border-top: 1px solid #e3e8f0;
}

.ai-chip {
  border: 1px solid #dde2ea;
  background: var(--color-white);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.ai-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e3e8f0;
}

.ai-input-row input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #dde2ea;
  padding: 10px 12px;
  font-family: inherit;
}

.ai-input-row button {
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--color-accent);
  font-weight: 700;
  cursor: pointer;
}
