/* SysthetIQ Cookie-Banner v1.0 — Brand: Dark + Blau + Geist */

.sq-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(8, 12, 18, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(79, 140, 255, 0.18);
  box-shadow: 0 -8px 32px -8px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #F0F4F8;
}
.sq-cookie-banner.is-visible { transform: translateY(0); }
.sq-cookie-banner-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.sq-cookie-banner-content { flex: 1; min-width: 280px; max-width: 720px; }
.sq-cookie-banner-title {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem;
  font-size: 0.95rem; font-weight: 500; color: #F0F4F8; letter-spacing: -0.01em;
}
.sq-cookie-banner-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(79, 140, 255, 0.12); color: #4F8CFF; flex-shrink: 0;
}
.sq-cookie-banner-icon svg { width: 14px; height: 14px; }
.sq-cookie-banner-text {
  font-size: 0.85rem; line-height: 1.6; color: #8892A4;
  font-weight: 300; margin: 0;
}
.sq-cookie-banner-text a {
  color: #4F8CFF; text-decoration: none; transition: color 0.2s ease;
}
.sq-cookie-banner-text a:hover { color: #6FA0FF; text-decoration: underline; }
.sq-cookie-banner-actions {
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; flex-shrink: 0;
}
.sq-cookie-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.2rem; border-radius: 8px;
  font-family: 'Geist', sans-serif; font-size: 0.8rem; font-weight: 500;
  letter-spacing: -0.005em; cursor: pointer; border: 1px solid transparent;
  transition: all 0.2s ease; white-space: nowrap; text-decoration: none;
}
.sq-cookie-btn-ghost {
  background: transparent; color: #8892A4;
  border-color: rgba(255, 255, 255, 0.1);
}
.sq-cookie-btn-ghost:hover {
  color: #F0F4F8; border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}
.sq-cookie-btn-secondary {
  background: rgba(79, 140, 255, 0.06); color: #F0F4F8;
  border-color: rgba(79, 140, 255, 0.25);
}
.sq-cookie-btn-secondary:hover {
  background: rgba(79, 140, 255, 0.12);
  border-color: rgba(79, 140, 255, 0.45);
}
.sq-cookie-btn-primary {
  position: relative; overflow: hidden; color: #05070B;
  background: linear-gradient(180deg, #6FA0FF 0%, #2D6BE0 100%);
  border-color: rgba(111, 160, 255, 0.55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -8px 18px -6px rgba(15, 30, 75, 0.30),
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 4px 14px -5px rgba(79, 140, 255, 0.5);
}
.sq-cookie-btn-primary::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  pointer-events: none;
}
.sq-cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -8px 18px -6px rgba(15, 30, 75, 0.30),
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 8px 22px -5px rgba(79, 140, 255, 0.65);
}

/* MODAL */
.sq-cookie-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.sq-cookie-modal.is-open { display: flex; }
.sq-cookie-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 4, 8, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sq-cookie-modal-panel {
  position: relative; width: min(580px, 100%); max-height: 85vh;
  display: flex; flex-direction: column;
  background: #080C13;
  border: 1px solid rgba(79, 140, 255, 0.18);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.sq-cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sq-cookie-modal-title {
  font-size: 1.05rem; font-weight: 500; color: #F0F4F8;
  letter-spacing: -0.01em;
}
.sq-cookie-modal-close {
  background: transparent; border: none; color: #8892A4;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.sq-cookie-modal-close:hover {
  color: #F0F4F8; background: rgba(255, 255, 255, 0.05);
}
.sq-cookie-modal-body {
  padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1;
}
.sq-cookie-modal-intro {
  font-size: 0.85rem; line-height: 1.6; color: #8892A4;
  margin: 0 0 1.5rem; font-weight: 300;
}
.sq-cookie-category {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px; margin-bottom: 0.7rem;
}
.sq-cookie-category-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.4rem;
}
.sq-cookie-category-name {
  font-size: 0.92rem; font-weight: 500; color: #F0F4F8;
  letter-spacing: -0.01em;
}
.sq-cookie-category-desc {
  font-size: 0.8rem; line-height: 1.55; color: #8892A4;
  margin: 0; font-weight: 300;
}

/* TOGGLE */
.sq-cookie-toggle {
  position: relative; display: inline-block;
  width: 44px; height: 24px; flex-shrink: 0;
}
.sq-cookie-toggle input { opacity: 0; width: 0; height: 0; }
.sq-cookie-toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px; cursor: pointer; transition: all 0.2s ease;
}
.sq-cookie-toggle-slider::before {
  content: ''; position: absolute;
  height: 18px; width: 18px; left: 2px; bottom: 2px;
  background: #8892A4; border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}
.sq-cookie-toggle input:checked + .sq-cookie-toggle-slider {
  background: rgba(79, 140, 255, 0.3);
  border-color: rgba(79, 140, 255, 0.5);
}
.sq-cookie-toggle input:checked + .sq-cookie-toggle-slider::before {
  transform: translateX(20px); background: #4F8CFF;
}
.sq-cookie-toggle input:disabled + .sq-cookie-toggle-slider {
  cursor: not-allowed; opacity: 0.5;
}
.sq-cookie-toggle input:disabled:checked + .sq-cookie-toggle-slider {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
}
.sq-cookie-toggle input:disabled:checked + .sq-cookie-toggle-slider::before {
  background: #4ADE80;
}

.sq-cookie-modal-footer {
  display: flex; gap: 0.6rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #05070B; flex-wrap: wrap;
}
.sq-cookie-modal-footer .sq-cookie-btn { flex: 1; min-width: 100px; }

.sq-cookie-settings-btn {
  position: fixed; bottom: 1rem; left: 1rem; z-index: 90;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(8, 12, 18, 0.92);
  border: 1px solid rgba(79, 140, 255, 0.18);
  color: #8892A4; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sq-cookie-settings-btn.is-visible { display: flex; }
.sq-cookie-settings-btn:hover {
  color: #F0F4F8; border-color: rgba(79, 140, 255, 0.45);
  background: rgba(8, 12, 18, 0.96);
}
.sq-cookie-settings-btn svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .sq-cookie-banner { padding: 1.2rem; }
  .sq-cookie-banner-inner { flex-direction: column; gap: 1rem; }
  .sq-cookie-banner-actions { width: 100%; }
  .sq-cookie-banner-actions .sq-cookie-btn { flex: 1; }
  .sq-cookie-banner-title { font-size: 0.9rem; }
  .sq-cookie-banner-text { font-size: 0.8rem; }
  .sq-cookie-modal-panel { max-height: 90vh; }
}
