.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid #3a3a5c;
  padding: 1.5rem 0;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.cookie-banner-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text h3 {
  color: #f8f9fa;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.cookie-banner-text p {
  color: #b8bcc8;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  color: #ffffff;
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cookie-btn-reject {
  background: transparent;
  color: #b8bcc8;
  border: 1px solid #3a3a5c;
}

.cookie-btn-reject:hover {
  background: #252547;
  color: #f8f9fa;
  border-color: #6366f1;
}

.cookie-btn-customize {
  background: #252547;
  color: #f8f9fa;
  border: 1px solid #3a3a5c;
}

.cookie-btn-customize:hover {
  background: #2d2d5a;
  border-color: #6366f1;
}

.cookie-link {
  color: #6366f1;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cookie-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Cookie Preferences Modal */
.cookie-preferences {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-preferences.show {
  opacity: 1;
  visibility: visible;
}

.cookie-preferences-content {
  background: #1a1a3a;
  border: 1px solid #3a3a5c;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cookie-preferences-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #3a3a5c;
}

.cookie-preferences-header h3 {
  color: #f8f9fa;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.cookie-close {
  background: none;
  border: none;
  color: #b8bcc8;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-close:hover {
  background: #252547;
  color: #f8f9fa;
}

.cookie-preferences-body {
  padding: 2rem;
}

.cookie-category {
  margin-bottom: 2rem;
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  margin-bottom: 0.75rem;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.cookie-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: #3a3a5c;
  border-radius: 12px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.cookie-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #b8bcc8;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-slider {
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-slider::before {
  transform: translateX(24px);
  background: #ffffff;
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-label {
  color: #f8f9fa;
  font-weight: 500;
  font-size: 1rem;
}

.cookie-description {
  color: #b8bcc8;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
  padding-left: 3rem;
}

.cookie-preferences-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid #3a3a5c;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .cookie-banner-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .cookie-preferences {
    padding: 1rem;
  }

  .cookie-preferences-content {
    max-height: 90vh;
  }

  .cookie-preferences-header,
  .cookie-preferences-body,
  .cookie-preferences-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .cookie-preferences-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .cookie-description {
    padding-left: 0;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 1rem 0;
  }

  .cookie-banner-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-preferences-header h3 {
    font-size: 1.25rem;
  }

  .cookie-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cookie-description {
    padding-left: 0;
  }
}