/* ============================================================
   99agency — Cookie Consent
   Tema: dark + neon green (#C6FF00) + glassmorphism
   ============================================================ */

.cc-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
}
.cc-root.cc-open { pointer-events: auto; }
.cc-root *, .cc-root *::before, .cc-root *::after { box-sizing: border-box; }

/* === Banner (modo simples, primeira visita) === */
.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(198, 255, 0, 0.18);
  border-radius: 16px;
  padding: 22px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(198, 255, 0, 0.05);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.cc-root.cc-open .cc-banner { transform: translateY(0); opacity: 1; }

.cc-banner-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-banner-title::before {
  content: "🍪";
  font-size: 16px;
}
.cc-banner-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
}
.cc-banner-body a {
  color: #C6FF00;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-banner-body a:hover { color: #d8ff3a; }

.cc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.cc-btn:active { transform: translateY(1px); }

.cc-btn-primary {
  background: #C6FF00;
  color: #07070A;
}
.cc-btn-primary:hover { background: #d8ff3a; }

.cc-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.cc-btn-secondary:hover { border-color: rgba(255, 255, 255, 0.55); }

.cc-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: transparent;
}
.cc-btn-ghost:hover { color: #fff; }

/* === Modal de personalização === */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cc-root.cc-modal-open .cc-overlay {
  opacity: 1;
  pointer-events: auto;
}

.cc-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  background: #0D0D11;
  border: 1px solid rgba(198, 255, 0, 0.14);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
}
.cc-root.cc-modal-open .cc-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cc-modal-header {
  padding: 22px 26px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cc-modal-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.cc-modal-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.5;
}

.cc-modal-body {
  padding: 18px 26px;
  overflow-y: auto;
  flex: 1;
}

.cc-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cc-category:last-child { border-bottom: none; }

.cc-category-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.cc-category-desc {
  grid-column: 1;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-top: 4px;
}

/* Toggle switch */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  align-self: start;
}
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: background .2s;
  cursor: pointer;
}
.cc-switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.cc-switch input:checked + .cc-switch-slider { background: #C6FF00; }
.cc-switch input:checked + .cc-switch-slider::before {
  transform: translateX(20px);
  background: #07070A;
}
.cc-switch input:disabled + .cc-switch-slider {
  background: rgba(198, 255, 0, 0.35);
  cursor: not-allowed;
}
.cc-switch input:disabled + .cc-switch-slider::before { background: rgba(255, 255, 255, 0.6); }

.cc-modal-footer {
  padding: 16px 26px 22px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

/* Floating link (rodapé) pra reabrir as preferências depois */
.cc-preferences-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
}
.cc-preferences-link:hover { color: #C6FF00; }
.cc-preferences-link::before {
  content: "🍪";
  font-size: 13px;
}

/* Mobile */
@media (max-width: 560px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px 18px; border-radius: 14px; }
  .cc-banner-title { font-size: 14.5px; }
  .cc-banner-body { font-size: 13px; }
  .cc-btn { padding: 9px 14px; font-size: 13px; }
  .cc-modal-header, .cc-modal-body, .cc-modal-footer { padding-left: 18px; padding-right: 18px; }
  .cc-actions { flex-direction: column; }
  .cc-actions .cc-btn { width: 100%; text-align: center; }
}
