/* NERP website theme system */
html[data-theme="hot-pink"] {
  --purple:#ff1493;
  --purple2:#ff66c4;
  --yellow:#ff9ed8;
  --yellow2:#ffd0eb;
  --nerp-purple:#ff1493;
  --nerp-purple-2:#ff66c4;
  --nerp-yellow:#ff9ed8;
}

html[data-theme="electric-blue"] {
  --purple:#178bff;
  --purple2:#64b5ff;
  --yellow:#38e8ff;
  --yellow2:#a7f6ff;
  --nerp-purple:#178bff;
  --nerp-purple-2:#64b5ff;
  --nerp-yellow:#38e8ff;
}

html[data-theme="emerald"] {
  --purple:#16a56f;
  --purple2:#42d99b;
  --yellow:#b9f227;
  --yellow2:#ddff85;
  --nerp-purple:#16a56f;
  --nerp-purple-2:#42d99b;
  --nerp-yellow:#b9f227;
}

html[data-theme="crimson"] {
  --purple:#dc3158;
  --purple2:#ff6685;
  --yellow:#ffb347;
  --yellow2:#ffd18a;
  --nerp-purple:#dc3158;
  --nerp-purple-2:#ff6685;
  --nerp-yellow:#ffb347;
}

/* Theme-aware surfaces that previously used hard-coded purple glows. */
html[data-theme]:not([data-theme="nerp"]) body,
html[data-theme]:not([data-theme="nerp"]) .portal-body {
  --theme-accent:var(--nerp-purple,var(--purple));
  --theme-highlight:var(--nerp-yellow,var(--yellow));
}

.nerp-theme-toggle {
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9999;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(14,11,20,.92);
  color:#fff;
  box-shadow:0 16px 44px rgba(0,0,0,.38);
  backdrop-filter:blur(14px);
  cursor:pointer;
  font-size:20px;
}

.nerp-theme-toggle:hover { transform:translateY(-1px); border-color:var(--nerp-purple,var(--purple,#7c3cff)); }

.nerp-theme-panel {
  position:fixed;
  right:22px;
  bottom:80px;
  z-index:9999;
  width:min(320px,calc(100vw - 28px));
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(12,9,17,.96);
  box-shadow:0 24px 70px rgba(0,0,0,.48);
  backdrop-filter:blur(18px);
  color:#fff;
  font-family:Inter,system-ui,sans-serif;
}

.nerp-theme-panel[hidden] { display:none!important; }
.nerp-theme-panel__head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; margin-bottom:13px; }
.nerp-theme-panel__head strong { display:block; font-size:14px; }
.nerp-theme-panel__head small { display:block; color:#a9a0b5; margin-top:4px; font-size:11px; line-height:1.35; }
.nerp-theme-close { border:0; background:transparent; color:#aaa1b5; cursor:pointer; font-size:18px; padding:0 2px; }
.nerp-theme-options { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.nerp-theme-option { border:1px solid rgba(255,255,255,.1); background:#15111d; color:#eee8f5; border-radius:12px; padding:10px; cursor:pointer; text-align:left; font:700 11px Inter,system-ui,sans-serif; }
.nerp-theme-option:hover,.nerp-theme-option.active { border-color:var(--nerp-purple,var(--purple,#7c3cff)); box-shadow:0 0 0 2px color-mix(in srgb,var(--nerp-purple,var(--purple,#7c3cff)) 16%,transparent); }
.nerp-theme-swatch { display:flex; height:19px; overflow:hidden; border-radius:7px; margin-bottom:8px; }
.nerp-theme-swatch i { flex:1; display:block; }

@media (max-width:600px) {
  .nerp-theme-toggle { right:14px; bottom:14px; }
  .nerp-theme-panel { right:14px; bottom:70px; }
}
