/* ============================================================
   Cookie-Banner – Mindset-Kompass
   ============================================================ */

#mk-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(9, 14, 30, 0.97);
  border-top: 1px solid rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Inter', system-ui, sans-serif;
  animation: mk-banner-slide 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mk-banner-slide {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#mk-cookie-banner.mk-hidden {
  display: none !important;
}

.mk-cookie-text {
  flex: 1;
  min-width: 260px;
}

.mk-cookie-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #f0f4ff;
  margin-bottom: 6px;
}

.mk-cookie-text p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.mk-cookie-text a {
  color: #60a5fa;
  text-decoration: none;
}

.mk-cookie-text a:hover {
  text-decoration: underline;
}

.mk-cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.mk-cookie-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mk-cookie-btn-accept {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
}

.mk-cookie-btn-accept:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.mk-cookie-btn-reject {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mk-cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f0f4ff;
}

.mk-cookie-btn-settings {
  background: transparent;
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 13px;
  padding: 9px 16px;
}

.mk-cookie-btn-settings:hover {
  background: rgba(59, 130, 246, 0.1);
}

/* ── Cookie-Settings Modal ── */
#mk-cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#mk-cookie-modal.mk-open {
  display: flex;
}

.mk-cookie-modal-box {
  background: #0c111d;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  animation: mk-modal-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mk-modal-in {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.mk-cookie-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #f0f4ff;
  margin-bottom: 6px;
}

.mk-cookie-modal-sub {
  font-size: 13px;
  color: #475569;
  margin-bottom: 24px;
}

.mk-cookie-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.mk-cookie-category-info {
  flex: 1;
}

.mk-cookie-category-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #f0f4ff;
  margin-bottom: 3px;
}

.mk-cookie-category-info p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Toggle switch */
.mk-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.mk-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.mk-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.mk-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #64748b;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.mk-toggle input:checked + .mk-toggle-slider {
  background: rgba(59, 130, 246, 0.3);
}

.mk-toggle input:checked + .mk-toggle-slider::before {
  transform: translateX(20px);
  background: #3b82f6;
}

.mk-toggle input:disabled + .mk-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.mk-cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.mk-cookie-modal-actions .mk-cookie-btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

@media (max-width: 600px) {
  #mk-cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px;
  }
  .mk-cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
