/**
 * ComplyX GDPR & Cookie Consent Suite
 * Glassmorphic Enterprise Styling
 */
#complyx-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 960px;
  margin: 0 auto;
  background: rgba(14, 17, 23, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 22px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 24px rgba(224, 32, 32, 0.12);
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: complyxSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes complyxSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes complyxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.complyx-cookie-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #8892a0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.complyx-cookie-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.complyx-cookie-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}

.complyx-cookie-badge {
  background: rgba(224, 32, 32, 0.15);
  color: #E02020;
  border: 1px solid rgba(224, 32, 32, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.complyx-cookie-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.complyx-cookie-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: #a0a6b1;
}

.complyx-cookie-body a {
  color: #E02020;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.complyx-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.complyx-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.complyx-btn-primary {
  background: #E02020;
  color: #fff;
}

.complyx-btn-primary:hover {
  background: #ff3333;
  box-shadow: 0 4px 15px rgba(224, 32, 32, 0.4);
}

.complyx-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.complyx-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.complyx-btn-text {
  background: transparent;
  color: #8892a0;
  text-decoration: underline;
  padding: 10px 12px;
}

.complyx-btn-text:hover {
  color: #fff;
}

/* Modal Preferences */
#complyx-cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: complyxFadeIn 0.25s ease-out;
}

.complyx-modal-card {
  background: #11141a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  padding: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.complyx-category-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.complyx-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.complyx-category-header h4 {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

.complyx-category-header span.badge {
  font-size: 11px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.complyx-category-row p {
  margin: 0;
  font-size: 12.5px;
  color: #8892a0;
  line-height: 1.5;
}

/* Floating Reopen Launcher */
#complyx-cookie-launcher {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #11141a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999990;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(224, 32, 32, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  outline: none;
}

#complyx-cookie-launcher:hover {
  transform: scale(1.1);
  border-color: #E02020;
  box-shadow: 0 6px 24px rgba(224, 32, 32, 0.35);
}

@media (max-width: 680px) {
  #complyx-cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 18px 16px;
    gap: 14px;
    border-radius: 12px;
  }
  .complyx-cookie-actions {
    flex-direction: column-reverse;
    width: 100%;
  }
  .complyx-cookie-actions .complyx-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  #complyx-cookie-launcher {
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
}