/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #e4e4ed;
  box-shadow: 0 -8px 40px rgba(0,0,0,.08);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { flex: 1 1 280px; margin: 0; }
#cookie-banner a { color: inherit; text-decoration: underline; }
#cookie-banner .cb-actions {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
}
#cookie-banner .cb-btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity .15s;
  white-space: nowrap;
}
#cookie-banner .cb-btn:hover { opacity: .85; }
#cookie-banner .cb-accept {
  background: #1a1a2e;
  color: #fff;
}
#cookie-banner .cb-reject {
  background: #f2f2f6;
  color: #444;
}
#cookie-banner .cb-settings {
  background: transparent;
  color: #777;
  padding: 9px 10px;
  text-decoration: underline;
  font-weight: 400;
}

/* Cookie Settings Modal */
#cookie-modal {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px;
}
#cookie-modal.open { display: flex; }
#cookie-modal .cm-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  max-width: 480px; width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,.18);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
}
#cookie-modal h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 20px; font-weight: 600;
  margin: 0 0 8px;
  color: #1a1a2e;
  letter-spacing: -.02em;
}
#cookie-modal .cm-sub {
  font-size: 13px; color: #777; margin: 0 0 28px;
}
.cm-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e4e4ed;
}
.cm-row:first-of-type { border-top: 1px solid #e4e4ed; }
.cm-row-text { flex: 1; }
.cm-row-text strong { font-size: 14px; font-weight: 600; color: #1a1a2e; display: block; margin-bottom: 2px; }
.cm-row-text span { font-size: 12px; color: #777; }
.cm-toggle {
  position: relative; width: 42px; height: 24px; flex-shrink: 0; margin-top: 2px;
}
.cm-toggle input { opacity: 0; width: 0; height: 0; }
.cm-slider {
  position: absolute; inset: 0;
  background: #e4e4ed; border-radius: 24px;
  cursor: pointer; transition: background .2s;
}
.cm-slider::before {
  content: ""; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  left: 3px; top: 3px;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.cm-toggle input:checked + .cm-slider { background: #1a1a2e; }
.cm-toggle input:checked + .cm-slider::before { transform: translateX(18px); }
.cm-toggle input:disabled + .cm-slider { opacity: .45; cursor: default; }
.cm-actions {
  display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap;
}
.cm-actions .cb-btn { flex: 1 1 120px; justify-content: center; display: flex; }
