/* NightPulse front-end privacy panel. Isolated selectors, no theme dependencies. */
html.npa-consent-active { overflow: hidden !important; }
.npa-consent-overlay, .npa-consent-overlay * { box-sizing: border-box; }
.npa-consent-overlay {
  position: fixed; inset: 0; z-index: 2147483000; display: flex;
  align-items: center; justify-content: center; overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(3,8,25,.74); -webkit-backdrop-filter: blur(12px) saturate(.78);
  backdrop-filter: blur(12px) saturate(.78);
}
.npa-consent-card {
  isolation: isolate; position: relative; width: min(840px,100%); max-height: calc(100dvh - 36px);
  overflow-y: auto; padding: clamp(25px,4vw,44px); border-radius: 29px;
  border: 1.5px solid transparent; background:
    linear-gradient(145deg, rgba(19,32,57,.98) 0%, rgba(12,19,38,.99) 75%) padding-box,
    linear-gradient(132deg,#1bc8fb 0%,#796cf6 48%,#b45dff 72%,#348bfc 100%) border-box;
  box-shadow: 0 28px 115px rgba(1,4,16,.82), 0 0 54px rgba(91,86,246,.16);
  color: #f3f5ff; font: 400 16px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;
  text-align: left; scrollbar-color: #556181 transparent;
}
.npa-consent-card:before {
  content:""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse at 85% 0,rgba(62,117,242,.17),transparent 45%),
    radial-gradient(ellipse at 0 96%,rgba(127,68,252,.14),transparent 43%);
}
.npa-consent-eyebrow { color: #f7c74c; font-size: 12px; font-weight: 800; letter-spacing: .25em; margin: 0 0 17px; text-transform: uppercase; }
.npa-consent-card h2 { margin: 0 0 14px; font: 800 clamp(23px,3.1vw,29px)/1.23 system-ui,-apple-system,'Segoe UI',sans-serif; letter-spacing: -.035em; color: #fff; }
.npa-consent-description { margin: 0 0 23px; max-width: 735px; font-size: clamp(15px,1.7vw,17px); line-height: 1.65; color: #d6dff2; }
.npa-consent-switch-row { background: rgba(83,76,173,.16); border: 1px solid rgba(138,120,255,.44); border-radius: 22px; margin-bottom: 24px; padding: 18px 20px; display: flex; align-items: center; gap: 18px; }
.npa-consent-mini-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 51px; height: 51px; border-radius: 15px; color: #a89eff; background: rgba(96,95,236,.2); font: 900 28px/1 system-ui,sans-serif; }
.npa-consent-switch-divider { align-self: stretch; min-height: 40px; width: 1px; background: #4c5a7e; flex-shrink: 0; }
.npa-consent-switch-label { color: #f7f8ff; font-size: clamp(16px,2vw,21px); line-height: 1.3; font-weight: 760; flex: 1; cursor: pointer; }
.npa-consent-switch-controls { display: flex; align-items: center; gap: 13px; margin-left: auto; flex-shrink: 0; }
.npa-consent-state { color: #b8c6dc; background: #303c56; font-size: 12px; padding: 5px 12px; border-radius: 11px; white-space: nowrap; font-weight: 800; }
.npa-consent-state[data-on="true"] { color: #66e5be; background: rgba(12,122,87,.28); }
.npa-consent-switch { appearance: none; -webkit-appearance: none; margin: 0; width: 64px; height: 36px; border: 1px solid #607096; background: #37425e; border-radius: 999px; position: relative; flex-shrink: 0; cursor: pointer; transition: background .15s ease; }
.npa-consent-switch:before { content:""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #e4e8f8; box-shadow: 0 2px 5px #0005; transition: transform .15s ease; }
.npa-consent-switch:checked { background: linear-gradient(110deg,#7863f6,#03b8ee); border-color: #7d9ffa; }
.npa-consent-switch:checked:before { transform: translateX(27px); background: white; }
.npa-consent-explanation { color: #aebcda; font-size: 13px; line-height: 1.55; margin: -9px 0 21px; }
.npa-consent-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.npa-consent-btn { font: 800 clamp(15px,1.5vw,18px)/1.25 system-ui,-apple-system,'Segoe UI',sans-serif; min-height: 66px; border: 1px solid transparent; border-radius: 17px; padding: 12px 16px; cursor: pointer; text-align: center; transition: filter .15s ease, transform .15s ease; }
.npa-consent-btn:hover { filter: brightness(1.14); }
.npa-consent-btn:active { transform: scale(.985); }
.npa-consent-accept { color: #fff; background: linear-gradient(120deg,#795af6 4%,#208efc 70%,#00b9ec 100%); border-color: #8ca1ff; box-shadow: 0 3px 24px rgba(79,92,247,.21); }
.npa-consent-reject { color: #f5f7ff; background: #222e4a; border-color: #7081a3; }
.npa-consent-settings { color: #10182c; background: #f3f6ff; border-color: #f3f6ff; }
.npa-consent-footer { font-size: 13px; color: #acbad1; line-height: 1.55; margin: 0; }
.npa-consent-footer a { color: #a5d5ff; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.npa-consent-preferences { position: fixed; bottom: max(15px,env(safe-area-inset-bottom)); left: max(15px,env(safe-area-inset-left)); z-index: 900000; background: #17223c; color: #f4f7ff; padding: 10px 16px; border: 1px solid #6275bd; border-radius: 999px; box-shadow: 0 5px 22px #0006; font: 700 12px/1.3 system-ui,sans-serif; cursor: pointer; }
.npa-consent-preferences:hover { background: #2e3b63; }
.npa-consent-btn:focus-visible,.npa-consent-switch:focus-visible,.npa-consent-preferences:focus-visible,.npa-consent-footer a:focus-visible { outline: 3px solid #ffd873; outline-offset: 4px; }
.npa-consent-details { color: #c5d0e4; margin-bottom: 18px; padding: 0 2px; }
.npa-consent-details p { margin: 0 0 10px; }
.npa-consent-details strong { color: white; }
.npa-consent-details[hidden], .npa-consent-actions[hidden] { display: none !important; }
.npa-consent-settings-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:700px) {
  .npa-consent-overlay { padding: 12px; align-items: center; }
  .npa-consent-card { max-height: calc(100dvh - 24px); padding: 23px; border-radius: 22px; }
  .npa-consent-switch-row { padding: 15px 13px; gap: 11px; border-radius: 16px; flex-wrap: wrap; }
  .npa-consent-mini-icon { flex-basis: 40px; height: 40px; border-radius: 12px; font-size: 23px; }
  .npa-consent-switch-divider { display: none; }
  .npa-consent-switch-label { font-size: 16px; }
  .npa-consent-switch-controls { flex-basis: 100%; justify-content: space-between; padding-top: 8px; }
  .npa-consent-actions { grid-template-columns: 1fr; gap: 10px; }
  .npa-consent-btn { min-height: 54px; font-size: 16px; border-radius: 12px; }
  .npa-consent-settings-actions { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) { .npa-consent-btn,.npa-consent-switch,.npa-consent-switch:before { transition: none; } }

/* Granular geolocation choice stays inside the explicit settings view. */
.npa-consent-geo-label { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid #43577a; border-radius:12px; color:#f1f5ff; font-size:14px; cursor:pointer; margin:12px 0; }
.npa-consent-geo-input { accent-color:#8273f6; width:20px; height:20px; flex:none; }
.npa-consent-geo-input:focus-visible { outline:3px solid #ffd873; outline-offset:3px; }
