/* ── VFP Consent Banner ─────────────────────────────────────────────────── */
#vfp-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999999;
  background: #0d0d1a;
  border-top: 2px solid #6c63ff;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  animation: vfp-slide-up 0.35s ease-out;
}

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

.vfp-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.vfp-banner-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.vfp-banner-text {
  flex: 1;
  min-width: 240px;
  color: #d0d0e8;
}

.vfp-banner-text strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.vfp-banner-text p {
  margin: 0 0 4px;
  color: #9999bb;
  font-size: 13px;
}

.vfp-banner-text a {
  color: #9b8fff;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.vfp-banner-text a:hover { border-color: #9b8fff; }

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

/* ── Buttons ────────────────────────────────────────────────────────────── */
.vfp-btn {
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.2s;
  white-space: nowrap;
}

.vfp-btn-accept {
  background: linear-gradient(135deg, #6c63ff, #5a54e8);
  color: #fff;
  box-shadow: 0 2px 12px rgba(108,99,255,0.4);
}

.vfp-btn-accept:hover {
  background: linear-gradient(135deg, #7d75ff, #6c63ff);
  box-shadow: 0 4px 20px rgba(108,99,255,0.55);
  transform: translateY(-1px);
}

.vfp-btn-minimal {
  background: rgba(255,255,255,0.06);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.12);
}

.vfp-btn-minimal:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

.vfp-btn-settings {
  background: transparent;
  color: #666;
  font-size: 12px;
  padding: 9px 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vfp-btn-settings:hover { color: #aaa; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
#vfp-consent-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0,0,0,0.72);
  align-items: flex-end;
  justify-content: center;
}

#vfp-consent-modal.open { display: flex; }

#vfp-consent-modal-inner {
  background: #16162a;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 540px;
  color: #d0d0e8;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
}

#vfp-consent-modal-inner h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 17px;
  font-family: inherit;
}

/* ── Consent categories ─────────────────────────────────────────────────── */
.vfp-consent-category {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.vfp-consent-category:last-of-type { border-bottom: none; }

.vfp-consent-category-text { flex: 1; }

.vfp-consent-category-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.vfp-consent-category-text span {
  font-size: 12px;
  color: #7777aa;
}

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

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

.vfp-toggle-slider {
  position: absolute;
  inset: 0;
  background: #2a2a44;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.08);
}

.vfp-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  top: 2px;
  background: #666;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.vfp-toggle input:checked + .vfp-toggle-slider { background: #6c63ff; border-color: #6c63ff; }
.vfp-toggle input:checked + .vfp-toggle-slider::before {
  transform: translateX(20px);
  background: #fff;
}
.vfp-toggle input:disabled + .vfp-toggle-slider { opacity: 0.45; cursor: not-allowed; }
.vfp-toggle input:disabled + .vfp-toggle-slider::before { background: #fff; }

/* ── Modal actions ──────────────────────────────────────────────────────── */
.vfp-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vfp-modal-actions .vfp-btn-accept { flex: 1; text-align: center; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .vfp-banner-inner { padding: 16px 18px; gap: 14px; }
  .vfp-banner-icon  { display: none; }
  .vfp-banner-actions { width: 100%; }
  .vfp-btn-accept   { flex: 1; text-align: center; }
  #vfp-consent-modal-inner { padding: 24px 18px 20px; }
}
