/* ═══════════════════ Draxis.ai — Cookie Consent ═══════════════════ */
:root {
  --cc-bg: #0f1629;
  --cc-bg-solid: #0a1020;
  --cc-surface: #141c33;
  --cc-border: #1e293b;
  --cc-border-light: #334155;
  --cc-text: #f1f5f9;
  --cc-text-secondary: #cbd5e1;
  --cc-text-muted: #94a3b8;
  --cc-accent: #3b82f6;
  --cc-accent-light: #60a5fa;
  --cc-green: #10b981;
  --cc-red: #ef4444;
}

#draxis-cc,
#draxis-cc * {
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#draxis-cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483646;
  display: none;
}

#draxis-cc.cc-visible { display: block; }

.cc-banner {
  max-width: 1100px;
  margin: 0 auto 20px;
  background: rgba(10, 16, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--cc-border-light);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.1);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  color: var(--cc-text);
}

.cc-banner-body { min-width: 0; }

.cc-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--cc-text);
  letter-spacing: -0.01em;
}

.cc-banner-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--cc-text-secondary);
  margin: 0;
}

.cc-banner-text a {
  color: var(--cc-accent-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
}
.cc-banner-text a:hover { border-bottom-color: var(--cc-accent-light); }

.cc-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.cc-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.cc-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border-color: transparent;
}
.cc-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.cc-btn-secondary {
  background: rgba(148, 163, 184, 0.08);
  color: var(--cc-text);
  border-color: var(--cc-border-light);
}
.cc-btn-secondary:hover { background: rgba(148, 163, 184, 0.15); border-color: #475569; }

.cc-btn-ghost {
  background: transparent;
  color: var(--cc-text-secondary);
  border-color: transparent;
  padding: 10px 12px;
}
.cc-btn-ghost:hover { color: var(--cc-text); }

/* Modal */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cc-modal-overlay.cc-visible { display: flex; }

.cc-modal {
  background: var(--cc-bg-solid);
  border: 1px solid var(--cc-border-light);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  color: var(--cc-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.cc-modal-header {
  padding: 24px 28px 12px;
  border-bottom: 1px solid var(--cc-border);
}
.cc-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.cc-modal-header p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--cc-text-secondary);
  margin: 0;
}

.cc-modal-body { padding: 8px 28px; }

.cc-category {
  padding: 18px 0;
  border-bottom: 1px solid var(--cc-border);
}
.cc-category:last-child { border-bottom: none; }

.cc-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cc-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cc-text);
  margin: 0;
}
.cc-category-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--cc-text-secondary);
  margin: 8px 0 0;
}
.cc-category-detail {
  font-size: 0.75rem;
  color: var(--cc-text-muted);
  margin: 8px 0 0;
}

/* Toggle */
.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-toggle-slider {
  position: absolute;
  inset: 0;
  background: #334155;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.cc-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cc-toggle input:checked + .cc-toggle-slider { background: var(--cc-green); }
.cc-toggle input:checked + .cc-toggle-slider::before { transform: translateX(20px); }
.cc-toggle input:disabled + .cc-toggle-slider { background: #475569; cursor: not-allowed; opacity: 0.7; }

.cc-required-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cc-text-muted);
  padding: 3px 8px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 4px;
  margin-left: 10px;
}

.cc-modal-footer {
  padding: 18px 28px 24px;
  border-top: 1px solid var(--cc-border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  background: rgba(15, 22, 41, 0.5);
  border-radius: 0 0 16px 16px;
}
.cc-modal-footer-text {
  font-size: 0.75rem;
  color: var(--cc-text-muted);
  margin: 0;
  margin-right: auto;
}
.cc-modal-footer-text a { color: var(--cc-accent-light); text-decoration: none; }
.cc-modal-footer-text a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 820px) {
  .cc-banner {
    grid-template-columns: 1fr;
    margin: 0 12px 12px;
    padding: 18px 20px;
  }
  .cc-banner-actions { justify-content: stretch; }
  .cc-banner-actions .cc-btn { flex: 1; }
}
@media (max-width: 520px) {
  .cc-banner-actions { flex-direction: column; }
  .cc-banner-actions .cc-btn { width: 100%; }
  .cc-modal-header, .cc-modal-body, .cc-modal-footer { padding-left: 20px; padding-right: 20px; }
}
