/* Cookie Consent Banner & Preferences Modal */
.vnx-cookie-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99998; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.vnx-cookie-backdrop.open { opacity: 1; pointer-events: auto; }

.vnx-cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; box-shadow: 0 -4px 32px rgba(0,0,0,0.12);
    z-index: 99999; padding: 22px 0;
    transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Sora', 'Urbanist', 'Work Sans', sans-serif;
}
.vnx-cookie-banner.visible { transform: translateY(0); }
.vnx-cookie-banner .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.vnx-cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.vnx-cookie-text { flex: 1; min-width: 260px; font-size: 14px; line-height: 1.6; color: #333; }
.vnx-cookie-text a { color: #2563eb; text-decoration: underline; font-weight: 500; }
.vnx-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vnx-cookie-btn {
    padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: 2px solid transparent; transition: all 0.2s; white-space: nowrap;
}
.vnx-cookie-btn.accept-all { background: #2563eb; color: #fff; border-color: #2563eb; }
.vnx-cookie-btn.accept-all:hover { background: #1d4ed8; }
.vnx-cookie-btn.reject-all { background: transparent; color: #555; border-color: #ccc; }
.vnx-cookie-btn.reject-all:hover { background: #f5f5f5; border-color: #aaa; }
.vnx-cookie-btn.customize { background: transparent; color: #2563eb; border-color: #2563eb; }
.vnx-cookie-btn.customize:hover { background: #eef2ff; }

/* Preferences Modal */
.vnx-cookie-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.92);
    background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    width: 90%; max-width: 560px; max-height: 80vh; overflow-y: auto;
    z-index: 99999; opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 32px; font-family: 'Sora', 'Urbanist', 'Work Sans', sans-serif;
}
.vnx-cookie-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.vnx-cookie-modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #06050B; }
.vnx-cookie-modal p.modal-desc { font-size: 14px; color: #555; margin-bottom: 20px; line-height: 1.5; }
.vnx-cookie-category { border: 1px solid #e5e5e5; border-radius: 10px; padding: 16px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 14px; transition: background 0.15s; }
.vnx-cookie-category.always-on { background: #f9fafb; }
.vnx-cookie-category .cat-info { flex: 1; }
.vnx-cookie-category .cat-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; color: #06050B; }
.vnx-cookie-category .cat-desc { font-size: 13px; color: #666; line-height: 1.45; }
.vnx-cookie-toggle { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.vnx-cookie-toggle input { opacity: 0; width: 0; height: 0; }
.vnx-cookie-toggle .slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 26px; transition: 0.25s; }
.vnx-cookie-toggle .slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.25s; }
.vnx-cookie-toggle input:checked + .slider { background: #2563eb; }
.vnx-cookie-toggle input:checked + .slider::before { transform: translateX(22px); }
.vnx-cookie-toggle input:disabled + .slider { background: #4ade80; cursor: default; }
.vnx-cookie-toggle input:disabled + .slider::before { transform: translateX(22px); }
.vnx-cookie-modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.vnx-cookie-modal-footer .vnx-cookie-btn { min-width: 110px; }

/* Floating settings icon */
.vnx-cookie-settings-btn {
    position: fixed; bottom: 20px; left: 20px; width: 44px; height: 44px;
    background: #2563eb; color: #fff; border: none; border-radius: 50%;
    font-size: 18px; cursor: pointer; z-index: 99990; box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s;
}
.vnx-cookie-settings-btn:hover { background: #1d4ed8; transform: scale(1.08); }

@media (max-width: 640px) {
    .vnx-cookie-inner { flex-direction: column; align-items: stretch; gap: 16px; }
    .vnx-cookie-actions { flex-direction: column; }
    .vnx-cookie-btn { width: 100%; text-align: center; }
    .vnx-cookie-modal { padding: 24px 20px; max-height: 85vh; }
}