/* ═══ COOKIE CONSENT BANNER & PREFERENCE MODAL ═══ */
.aurora-consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 1100px; margin: 0 auto;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15,23,42,.18);
  padding: 22px 26px;
  display: none;
  font-family: 'Lexend', system-ui, sans-serif;
  animation: aurora-slideup .35s ease-out;
}
.aurora-consent-banner.show { display: block; }
@keyframes aurora-slideup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.aurora-consent-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.aurora-consent-text h3 {
  font-family: 'Merriweather', serif;
  font-size: 17px; color: #0F172A; margin: 0 0 6px; letter-spacing: -.01em;
}
.aurora-consent-text p {
  color: #475569; font-size: 13.5px; line-height: 1.65; margin: 0;
}
.aurora-consent-text a { color: #1E40AF; text-decoration: underline; }

.aurora-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.aurora-consent-btn {
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .2s;
  white-space: nowrap;
}
.aurora-consent-btn.primary { background: #F97316; color: #fff; }
.aurora-consent-btn.primary:hover { background: #EA580C; }
.aurora-consent-btn.secondary { background: #fff; color: #1E40AF; border-color: #DBEAFE; }
.aurora-consent-btn.secondary:hover { border-color: #1E40AF; }
.aurora-consent-btn.text { background: transparent; color: #475569; }
.aurora-consent-btn.text:hover { color: #0F172A; }

/* Modal */
.aurora-consent-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.aurora-consent-modal.show { display: flex; }
.aurora-consent-card {
  background: #fff; border-radius: 16px;
  max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(15,23,42,.3);
  font-family: 'Lexend', system-ui, sans-serif;
}
.aurora-consent-card .head {
  padding: 22px 26px; border-bottom: 1px solid #E2E8F0;
  display: flex; justify-content: space-between; align-items: center;
}
.aurora-consent-card .head h3 {
  font-family: 'Merriweather', serif; font-size: 19px; color: #0F172A; letter-spacing: -.01em; margin: 0;
}
.aurora-consent-card .close {
  background: none; border: none; font-size: 22px; color: #94A3B8; cursor: pointer; padding: 0; line-height: 1;
}
.aurora-consent-card .body { padding: 22px 26px; }
.aurora-consent-card .body > p { color: #475569; font-size: 14px; line-height: 1.7; margin: 0 0 16px; }

.aurora-toggle-row {
  border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: flex-start;
}
.aurora-toggle-row h4 {
  color: #0F172A; font-size: 14.5px; margin: 0 0 4px; display: flex; gap: 8px; align-items: center;
}
.aurora-toggle-row p { color: #64748B; font-size: 12.5px; line-height: 1.55; margin: 0; }
.aurora-toggle-row .badge { font-size: 10.5px; background: #DBEAFE; color: #1E40AF; padding: 2px 8px; border-radius: 999px; font-weight: 700; }

.aurora-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.aurora-switch input { opacity: 0; width: 0; height: 0; }
.aurora-switch .slider {
  position: absolute; inset: 0; background: #CBD5E1; border-radius: 999px; cursor: pointer; transition: .25s;
}
.aurora-switch .slider::before {
  content: ''; position: absolute; left: 2px; top: 2px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.aurora-switch input:checked + .slider { background: #059669; }
.aurora-switch input:checked + .slider::before { transform: translateX(18px); }
.aurora-switch input:disabled + .slider { background: #94A3B8; cursor: not-allowed; opacity: .7; }

.aurora-consent-card .foot {
  padding: 18px 26px; border-top: 1px solid #E2E8F0;
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
}

@media (max-width: 700px) {
  .aurora-consent-grid { grid-template-columns: 1fr; }
  .aurora-consent-banner { padding: 18px 20px; }
  .aurora-consent-actions { width: 100%; }
  .aurora-consent-actions .aurora-consent-btn { flex: 1; min-width: 0; }
}
