:root {
  --nk-consent-gold: #efd37c;
  --nk-consent-gold-2: #b98732;
  --nk-consent-violet: #8f75ff;
  --nk-consent-cyan: #63d8ff;
  --nk-consent-bg: #070b16;
  --nk-consent-panel: #0e1528;
  --nk-consent-text: #f5f7ff;
  --nk-consent-muted: #aeb8cc;
}

body.nk-consent-open { overflow: hidden !important; }
.nk-consent-overlay, .nk-consent-overlay * { box-sizing: border-box; }

.nk-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 20px;
  background: rgba(2, 4, 11, .74);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  animation: nkConsentOverlayIn .22s ease both;
}

.nk-consent-overlay.is-closing { animation: nkConsentOverlayOut .18s ease both; }

.nk-consent-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: min(91vh, 860px);
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--nk-consent-text);
  border: 1px solid rgba(239, 211, 124, .30);
  border-radius: 28px;
  padding: 24px;
  background:
    radial-gradient(circle at 88% 0%, rgba(143, 117, 255, .13), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(99, 216, 255, .07), transparent 31%),
    linear-gradient(150deg, rgba(16, 24, 45, .985), rgba(6, 9, 19, .995));
  box-shadow: 0 35px 110px rgba(0, 0, 0, .66), 0 0 0 1px rgba(255, 255, 255, .025) inset;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  isolation: isolate;
  animation: nkConsentDialogIn .42s cubic-bezier(.2, .8, .2, 1) both;
}

.nk-consent-overlay.is-closing .nk-consent-dialog { animation: nkConsentDialogOut .18s ease both; }

.nk-consent-accent {
  position: absolute;
  top: 0;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 211, 124, .88), rgba(143, 117, 255, .78), transparent);
  box-shadow: 0 0 25px rgba(239, 211, 124, .22);
  pointer-events: none;
}

.nk-consent-header {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.nk-consent-brand {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  border-radius: 16px;
  padding: 0 8px;
  color: #080b12;
  background: linear-gradient(135deg, #fff2bd, #d5ad54 57%, #aa7625);
  box-shadow: 0 13px 34px rgba(174, 119, 32, .24), 0 0 0 1px rgba(255, 255, 255, .25) inset;
  font-weight: 1000;
  letter-spacing: -.13em;
}

.nk-consent-brand span:last-child { color: #3a2b15; }
.nk-consent-heading { min-width: 0; }
.nk-consent-eyebrow {
  display: block;
  color: var(--nk-consent-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.nk-consent-heading h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.nk-consent-close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .045);
  color: #fff;
  font-size: 23px;
  cursor: pointer;
  transition: .2s ease;
}

.nk-consent-close:hover,
.nk-consent-close:focus-visible { border-color: rgba(239, 211, 124, .55); background: rgba(239, 211, 124, .09); }

.nk-consent-intro {
  position: relative;
  z-index: 1;
  margin: 17px 0;
  color: #c7d0e1;
  font-size: 14px;
  line-height: 1.65;
}

.nk-consent-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.nk-consent-summary article {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
}

.nk-consent-summary i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  color: var(--nk-consent-gold);
  background: rgba(239, 211, 124, .09);
  border: 1px solid rgba(239, 211, 124, .20);
  font-style: normal;
  font-weight: 900;
}

.nk-consent-summary b { display: block; color: #fff; font-size: 13px; }
.nk-consent-summary span { display: block; margin-top: 4px; color: var(--nk-consent-muted); font-size: 11.5px; line-height: 1.48; }

.nk-consent-status {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(99, 216, 255, .16);
  border-radius: 16px;
  background: rgba(99, 216, 255, .045);
}

.nk-consent-status > span {
  color: var(--nk-consent-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nk-consent-status p { margin: 4px 0 0; color: #b9c6d8; font-size: 11.5px; line-height: 1.5; }
.nk-consent-options { position: relative; z-index: 1; display: grid; gap: 9px; }

.nk-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .095);
  border-radius: 17px;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.nk-consent-option:not(.is-locked):hover {
  transform: translateY(-1px);
  border-color: rgba(143, 117, 255, .34);
  background: rgba(143, 117, 255, .055);
}

.nk-consent-option.is-locked { cursor: default; opacity: .88; }
.nk-consent-option-copy { min-width: 0; }
.nk-consent-option-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #fff; font-size: 13px; font-weight: 850; }
.nk-consent-option-title em { padding: 3px 7px; border-radius: 999px; color: #b9c4d6; background: rgba(255, 255, 255, .055); font-size: 9px; font-style: normal; letter-spacing: .04em; }
.nk-consent-option-description { display: block; margin-top: 4px; color: #aeb9cc; font-size: 11.5px; line-height: 1.48; }

.nk-consent-switch { position: relative; flex: 0 0 auto; }
.nk-consent-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nk-consent-switch i {
  display: block;
  width: 48px;
  height: 27px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: #242c3d;
  transition: .23s ease;
}

.nk-consent-switch i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #d6dce7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .32);
  transition: .23s ease;
}

.nk-consent-switch input:focus-visible + i { outline: 2px solid var(--nk-consent-cyan); outline-offset: 3px; }
.nk-consent-switch input:checked + i { border-color: rgba(143, 117, 255, .52); background: linear-gradient(135deg, #7455dc, #42afd1); box-shadow: 0 0 18px rgba(113, 87, 221, .22); }
.nk-consent-switch input:checked + i::after { transform: translateX(21px); background: #fff; }
.nk-consent-switch input:disabled + i { background: linear-gradient(135deg, #a77928, #e6c563); border-color: rgba(239, 211, 124, .38); }

.nk-consent-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 18px 0 15px;
}

.nk-consent-actions-main { grid-template-columns: repeat(3, 1fr); }
.nk-consent-actions-custom { grid-template-columns: .8fr 1.15fr 1.15fr; }

.nk-consent-btn {
  min-height: 49px;
  border-radius: 999px;
  padding: 0 17px;
  font: 850 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nk-consent-btn:hover { transform: translateY(-2px); }
.nk-consent-btn:focus-visible { outline: 2px solid var(--nk-consent-cyan); outline-offset: 3px; }

.nk-consent-btn-primary {
  border: 1px solid rgba(255, 238, 181, .48);
  color: #080b12;
  background: linear-gradient(135deg, #fff0b0, #d2aa52 58%, #ad7725);
  box-shadow: 0 12px 28px rgba(174, 119, 37, .19);
}

.nk-consent-btn-reject {
  border: 1px solid rgba(230, 236, 249, .30);
  color: #f7f9ff;
  background: linear-gradient(145deg, #252d40, #171e2e);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.nk-consent-btn-muted {
  border: 1px solid rgba(143, 117, 255, .30);
  color: #e8e4ff;
  background: rgba(143, 117, 255, .07);
}

.nk-consent-footer {
  position: relative;
  z-index: 1;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.nk-consent-footer p { margin: 0 0 7px; color: #929eb3; font-size: 10.5px; line-height: 1.52; }
.nk-consent-links { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.nk-consent-links a { color: var(--nk-consent-gold); font-size: 11px; font-weight: 800; text-decoration: none; }
.nk-consent-links a:hover, .nk-consent-links a:focus-visible { text-decoration: underline; }

.nk-consent-settings {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  border: 1px solid rgba(239, 211, 124, .24);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--nk-consent-gold);
  background: rgba(7, 11, 24, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .34);
  font: 800 10.5px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.nk-consent-settings:hover { transform: translateY(-2px); border-color: rgba(239, 211, 124, .48); background: rgba(15, 21, 39, .96); }
.nk-consent-settings span { font-size: 12px; }
body.nk-consent-open .nk-consent-settings { visibility: hidden; }

.nk-consent-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1000010;
  max-width: min(90vw, 420px);
  transform: translate(-50%, 18px);
  opacity: 0;
  padding: 12px 16px;
  border: 1px solid rgba(239, 211, 124, .27);
  border-radius: 999px;
  color: #f8faff;
  background: rgba(8, 13, 27, .95);
  box-shadow: 0 15px 45px rgba(0, 0, 0, .42);
  font: 800 11px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
  transition: .22s ease;
}

.nk-consent-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@keyframes nkConsentOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes nkConsentOverlayOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes nkConsentDialogIn { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes nkConsentDialogOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px) scale(.99); } }

@media (max-width: 760px) {
  .nk-consent-overlay { align-items: end; padding: 8px; }
  .nk-consent-dialog { max-height: 94dvh; border-radius: 23px; padding: 17px; }
  .nk-consent-brand { width: 47px; height: 47px; border-radius: 14px; }
  .nk-consent-summary { grid-template-columns: 1fr; }
  .nk-consent-summary article { padding: 12px; }
  .nk-consent-actions-main,
  .nk-consent-actions-custom { grid-template-columns: 1fr; }
  .nk-consent-btn { min-height: 47px; }
  .nk-consent-option { align-items: flex-start; padding: 12px; }
  .nk-consent-switch { margin-top: 3px; }
  .nk-consent-settings { left: 9px; bottom: 9px; min-height: 37px; padding: 0 10px; }
  .nk-consent-settings b { display: none; }
  .nk-consent-settings span { font-size: 14px; }
}

@media (max-width: 420px) {
  .nk-consent-dialog { padding: 15px; }
  .nk-consent-heading h2 { font-size: 20px; }
  .nk-consent-intro { font-size: 12.5px; }
  .nk-consent-option-description { font-size: 10.8px; }
}

@media (prefers-reduced-motion: reduce) {
  .nk-consent-overlay,
  .nk-consent-dialog,
  .nk-consent-btn,
  .nk-consent-option,
  .nk-consent-settings,
  .nk-consent-toast { animation: none !important; transition: none !important; }
}
