/* ==========================================================================
   Premium GDPR Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  width: calc(100% - 48px);
  max-width: 480px;
  background: rgba(8, 14, 41, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-family: inherit;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.cookie-banner__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(37, 127, 252, 0.1);
  color: #257ffc;
  flex-shrink: 0;
}
.cookie-banner__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.cookie-banner__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.cookie-banner__desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 20px 0;
}
.cookie-banner__desc a {
  color: #257ffc;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.cookie-banner__desc a:hover {
  border-color: #257ffc;
}
.cookie-banner__preferences {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cookie-banner__preferences.is-open {
  display: flex;
  animation: cookieFadeIn 0.3s ease forwards;
}
.cookie-banner__pref-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.cookie-banner__pref-text {
  flex-grow: 1;
}
.cookie-banner__pref-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}
.cookie-banner__pref-desc {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}
.cookie-banner__switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-banner__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-banner__switch input:checked + .cookie-banner__slider {
  background-color: #257ffc;
}
.cookie-banner__switch input:checked + .cookie-banner__slider:before {
  transform: translateX(20px);
}
.cookie-banner__switch input:disabled + .cookie-banner__slider {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-banner__switch input:focus-visible + .cookie-banner__slider {
  outline: 2px solid #257ffc;
  outline-offset: 2px;
}
.cookie-banner__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.16);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}
.cookie-banner__slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-banner__actions button {
  flex: 1 1 calc(50% - 5px);
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.cookie-banner__actions button:active {
  transform: scale(0.97);
}
.cookie-banner__btn-accept {
  background: #257ffc;
  color: #ffffff;
}
.cookie-banner__btn-accept:hover {
  background: #1a6fd4;
}
.cookie-banner__btn-reject {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.cookie-banner__btn-reject:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.cookie-banner__btn-pref {
  flex: 1 1 100% !important;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.cookie-banner__btn-pref:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}
.cookie-banner__btn-save {
  background: #257ffc;
  color: #ffffff;
}
.cookie-banner__btn-save:hover {
  background: #1a6fd4;
}

.cookie-consent-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 14, 41, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
  display: none;
}
.cookie-consent-trigger.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
.cookie-consent-trigger:hover {
  color: #257ffc;
  border-color: rgba(37, 127, 252, 0.3);
  transform: scale(1.08);
}
.cookie-consent-trigger svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    padding: 20px;
    border-radius: 12px;
  }
  .cookie-banner__actions {
    flex-direction: column;
  }
  .cookie-banner__actions button {
    flex: 1 1 100%;
  }
  .cookie-consent-trigger {
    bottom: 16px;
    left: 16px;
  }
}
@keyframes cookieFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}