/* ─── Cookie Consent Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(28, 28, 28, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(237, 215, 181, 0.18);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: none;
  animation: cookie-slide-up 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cookie-banner.visible { display: block; }

@keyframes cookie-slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
@media (max-width: 640px) {
  .cookie-content { grid-template-columns: 1fr; gap: 14px; }
}

.cookie-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.cookie-text strong {
  color: #EDD7B5;
  font-weight: 600;
}
.cookie-text a {
  color: #EABB6A;
  text-decoration: underline;
  text-decoration-color: rgba(234, 187, 106, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color .2s;
}
.cookie-text a:hover {
  text-decoration-color: #EABB6A;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
}

.cookie-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 11px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s ease;
  border: none;
  white-space: nowrap;
}
.cookie-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(237, 215, 181, 0.18);
}
.cookie-btn-secondary:hover {
  border-color: rgba(237, 215, 181, 0.4);
  color: #EDD7B5;
}
.cookie-btn-primary {
  background: linear-gradient(135deg, #EABB6A 0%, #D4A65C 55%, #B08C46 100%);
  color: #1c1c1c;
}
.cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 187, 106, 0.3);
}

/* ─── Modal de configurações de cookies ─── */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cookie-fade .3s ease;
}
.cookie-modal.visible { display: flex; }
@keyframes cookie-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #1c1c1c;
  border: 1px solid rgba(237, 215, 181, 0.18);
  border-radius: 16px;
  padding: 32px 30px 28px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.cookie-modal-content h3 {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
}
.cookie-modal-content > p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 22px;
  line-height: 1.55;
}

.cookie-pref {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(237, 215, 181, 0.08);
}
.cookie-pref:first-of-type { border-top: none; padding-top: 8px; }

.cookie-pref-info { flex: 1; }
.cookie-pref-info h4 {
  font-size: 14px;
  color: #EDD7B5;
  font-weight: 600;
  margin-bottom: 4px;
}
.cookie-pref-info p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-toggle input { display: none; }
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: background .25s ease;
  cursor: pointer;
}
.cookie-toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: all .25s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, #EABB6A, #C39852);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: #1c1c1c;
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: rgba(234, 187, 106, 0.3);
  cursor: not-allowed;
}
.cookie-toggle input:disabled + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: rgba(255, 255, 255, 0.7);
}

.cookie-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  justify-content: flex-end;
}
@media (max-width: 480px) {
  .cookie-modal-actions { flex-direction: column-reverse; }
  .cookie-modal-actions button { width: 100%; }
}
