/* ===============================================
   COOKIE CONSENT BANNER – CLEAN FINAL VERSION
=============================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  z-index: 9999;

  background: linear-gradient(
    135deg,
    rgba(5, 6, 8, 0.98),
    rgba(0, 26, 51, 0.98)
  );
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);

  padding: 28px 0;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner-show {
  bottom: 0;
}

.cookie-banner-hide {
  bottom: -100%;
}

.cookie-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

.cookie-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary-blue);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.cookie-text p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 100%;
}

.cookie-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;

  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.cookie-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.cookie-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--primary-blue);
}

.cookie-link:hover::after {
  transform: translateX(4px);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cookie-actions button,
.cookie-settings-actions button {
  font-family: 'Montserrat', sans-serif;
}

.cookie-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;

  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.btn-accept-all,
.btn-accept-all-settings {
  background: var(--primary-blue);
  color: #000;
}

.btn-accept-all:hover,
.btn-accept-all-settings:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--primary-blue-glow);
}

.btn-settings,
.btn-save-settings {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-settings:hover,
.btn-save-settings:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-blue);
}

/* Settings panel */
.cookie-settings-panel {
  margin-top: 24px;
  padding: 24px;

  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;

  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-settings-panel h4 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.cookie-option {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option:last-of-type {
  margin-bottom: 20px;
  border-bottom: none;
}

.cookie-option-header label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.cookie-option-header input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-blue);
}

.cookie-option-header input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-option-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.cookie-option-desc {
  margin: 8px 0 0 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Float button */
.cookie-settings-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;

  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary-blue);
  color: #000;
  font-size: 1.2rem;

  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.cookie-settings-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 768px) {
  .cookie-banner-inner {
    padding: 0 20px;
  }

  .cookie-banner-content {
    flex-direction: column;
    gap: 16px;
  }

  .cookie-icon {
    width: 42px;
    height: 42px;
  }

  .cookie-text h3 {
    font-size: 1.15rem;
  }

  .cookie-text p {
    font-size: 0.9rem;
  }

  .cookie-actions,
  .cookie-settings-actions {
    flex-direction: column;
  }

  .cookie-actions button,
  .cookie-settings-actions button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 20px 0;
  }

  .cookie-settings-panel {
    padding: 18px;
  }

  .cookie-option-desc {
    margin-left: 0;
    margin-top: 12px;
  }
}

@media (max-width: 390px) {
  .cookie-banner-inner {
    padding: 0 16px;
  }

  .cookie-actions button,
  .cookie-settings-actions button {
    font-size: 0.82rem;
    padding: 11px 18px;
  }

  .cookie-text h3 {
    font-size: 1.05rem;
  }

  .cookie-text p {
    font-size: 0.88rem;
  }

  .cookie-settings-float {
    width: 46px;
    height: 46px;
    right: 16px;
    bottom: 16px;
    font-size: 1.05rem;
  }
}