/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -8px 32px rgba(0,0,0,.1);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .4s ease;
}
#cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.cb-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(251,191,36,.25);
}
.cb-cookie-icon {
  font-size: 28px;
  animation: cookieBounce 2s ease-in-out infinite;
}
@keyframes cookieBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-5deg); }
  75% { transform: translateY(-2px) rotate(5deg); }
}

.cb-text {
  flex: 1;
}
.cb-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: #1f2933;
  margin: 0 0 2px;
}
.cb-text p {
  font-size: .85rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
}
.cb-text a {
  color: #3b82f6;
  font-weight: 600;
}
.cb-text a:hover {
  text-decoration: underline;
}

.cb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cb-btn {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  white-space: nowrap;
}
.cb-accept {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 3px 12px rgba(59,130,246,.35);
}
.cb-accept:hover {
  box-shadow: 0 5px 20px rgba(59,130,246,.45);
  transform: translateY(-2px);
}
.cb-refuse {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.cb-refuse:hover {
  background: #f3f4f6;
  color: #1f2933;
}
.cb-custom {
  background: transparent;
  color: #3b82f6;
  border: 1px solid #3b82f6;
}
.cb-custom:hover {
  background: rgba(59,130,246,.08);
}

@media (max-width: 768px) {
  .cb-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 22px;
    gap: 14px;
  }
  .cb-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    align-self: flex-start;
  }
  .cb-cookie-icon { font-size: 22px; }
  .cb-actions {
    flex-direction: column;
    gap: 8px;
  }
  .cb-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}

/* ===== COOKIE MODAL ===== */
#cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cookie-modal-overlay.visible {
  display: flex;
}

.cm-box {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  animation: cmIn .4s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cmIn {
  from { transform: translateY(24px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.cm-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cm-header h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2933;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cm-modal-icon {
  flex-shrink: 0;
}
.cm-cat-icon {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
  color: #3b82f6;
}
.cm-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.2rem;
  transition: all .2s ease;
}
.cm-close:hover {
  background: #f3f4f6;
  color: #1f2933;
}

.cm-body {
  padding: 20px 24px;
}
.cm-desc {
  font-size: .88rem;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 20px;
}

.cm-cat {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cm-cat:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.cm-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cm-cat-info { flex: 1; }
.cm-cat-info h4 {
  font-family: 'Satoshi', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #1f2933;
  margin: 0 0 3px;
}
.cm-cat-info p {
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}
.cm-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  font-family: 'Satoshi', sans-serif;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  color: #3b82f6;
  margin-left: 6px;
  vertical-align: middle;
}

.cm-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cm-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cm-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease;
}
.cm-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform .25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.cm-toggle input:checked + .cm-slider {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}
.cm-toggle input:checked + .cm-slider::before {
  transform: translateX(20px);
}
.cm-toggle input:disabled + .cm-slider {
  opacity: .5;
  cursor: not-allowed;
}

.cm-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 10px;
}
.cm-footer .cb-btn {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
}

@media (max-width: 480px) {
  .cm-box { border-radius: 18px; max-height: 90vh; }
  .cm-header { padding: 20px 20px 0; }
  .cm-body { padding: 16px 20px; }
  .cm-footer { padding: 0 20px 20px; flex-direction: column; }
}
