/* ── YourNameCode — Cookie Consent ──────────────────────────────── */
.cc-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: rgba(19, 19, 31, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  color: #e8e4da;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 1080px;
  margin: 0 auto;
}
.cc-banner.cc-visible {
  opacity: 1;
  transform: translateY(0);
}
.cc-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem;
}
.cc-banner-text { flex: 1; min-width: 0; }
.cc-banner-text h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #e8d5a3;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}
.cc-banner-text p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #b8b4ac;
  margin: 0;
}
.cc-banner-text a {
  color: #e8d5a3;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-banner-text a:hover { color: #fff; }
.cc-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Buttons (shared with modal) ─────────────────────────────────── */
.cc-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.65rem 1.2rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn-gold {
  background: #c9a84c;
  color: #0b0b12;
  border-color: #c9a84c;
}
.cc-btn-gold:hover { background: #e8d5a3; border-color: #e8d5a3; }
.cc-btn-outline {
  background: transparent;
  color: #e8d5a3;
  border-color: rgba(201, 168, 76, 0.5);
}
.cc-btn-outline:hover {
  border-color: #c9a84c;
  background: rgba(201, 168, 76, 0.08);
}
.cc-btn-link {
  background: transparent;
  color: #b8b4ac;
  border-color: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.cc-btn-link:hover { color: #e8d5a3; transform: none; }

/* ── Modal ──────────────────────────────────────────────────────── */
.cc-modal-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cc-modal-backdrop.cc-visible { opacity: 1; }
.cc-modal {
  background: #13131f;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  color: #e8e4da;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}
.cc-modal-backdrop.cc-visible .cc-modal { transform: translateY(0) scale(1); }
.cc-modal h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #e8d5a3;
  margin: 0 0 0.4rem;
}
.cc-modal-intro {
  font-size: 0.9rem;
  color: #b8b4ac;
  margin: 0 0 1.4rem;
  line-height: 1.55;
}
.cc-modal-close {
  position: absolute;
  top: 0.85rem; right: 1rem;
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  color: #b8b4ac;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cc-modal-close:hover { background: rgba(201, 168, 76, 0.1); color: #e8d5a3; }

/* ── Categories ─────────────────────────────────────────────────── */
.cc-category {
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
  background: rgba(11, 11, 18, 0.4);
}
.cc-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cc-category-head > div { flex: 1; min-width: 0; }
.cc-category-head h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e8d5a3;
  margin: 0 0 0.2rem;
}
.cc-category-head p {
  font-size: 0.82rem;
  color: #b8b4ac;
  margin: 0;
  line-height: 1.5;
}

/* ── Toggle switch ──────────────────────────────────────────────── */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.cc-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cc-toggle-slider {
  position: absolute; inset: 0;
  background: #2a2a3a;
  border-radius: 24px;
  transition: background 0.2s;
}
.cc-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #b8b4ac;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.cc-toggle input:checked + .cc-toggle-slider {
  background: rgba(201, 168, 76, 0.35);
}
.cc-toggle input:checked + .cc-toggle-slider::before {
  transform: translateX(18px);
  background: #c9a84c;
}
.cc-toggle-locked .cc-toggle-slider {
  background: rgba(201, 168, 76, 0.2);
  cursor: not-allowed;
}
.cc-toggle-locked .cc-toggle-slider::before {
  transform: translateX(18px);
  background: #c9a84c;
  opacity: 0.6;
}

/* ── Modal actions ──────────────────────────────────────────────── */
.cc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

/* ── Footer link ────────────────────────────────────────────────── */
.cc-settings-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.cc-settings-link:hover { color: #e8d5a3; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .cc-banner { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
  .cc-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.1rem;
  }
  .cc-banner-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }
  .cc-banner-actions .cc-btn { flex: 1; }
  .cc-btn-link { flex-basis: 100%; order: 3; }
  .cc-modal { padding: 1.5rem 1.2rem; }
  .cc-modal h2 { font-size: 1.4rem; }
  .cc-modal-actions { flex-direction: column-reverse; }
  .cc-modal-actions .cc-btn { width: 100%; }
}
