body.locker-body {
  min-height: 100vh;
  margin: 0;
  background: url('noxbg.png'), rgba(26, 26, 46, 0.72);
  background-size: auto 100%;
  background-position: center top;
  background-repeat: repeat-x;
  background-blend-mode: overlay;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.locker-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.locker-card {
  width: min(92vw, 520px);
  padding: 28px;
  border: 1px solid rgba(64, 224, 208, 0.35);
  border-radius: 28px;
  background: rgba(10, 12, 28, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  text-align: center;
}

.locker-logo {
  width: min(280px, 72vw);
  height: auto;
  margin-bottom: 10px;
}

.locker-title-block h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0.03em;
}

.locker-title-block p {
  margin: 10px 0 22px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.locker-actions {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  align-items: center;
}

.locker-actions > .locker-primary-btn,
.locker-actions > .locker-secondary-btn {
  grid-column: span 4;
}

.locker-actions > .locker-icon-btn {
  grid-column: span 2;
  justify-self: center;
  margin-top: 11px;
}

.locker-primary-btn,
.locker-secondary-btn,
.locker-icon-btn,
.locker-setting-row,
.locker-close-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.locker-primary-btn,
.locker-secondary-btn {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 14px;
  color: #fff;
}

.locker-primary-btn {
  background: linear-gradient(135deg, #ff2bd6, #40e0d0);
  font-weight: 700;
}

.locker-secondary-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(64, 224, 208, 0.28);
}

.locker-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.locker-icon-btn img {
  width: 24px;
  height: 24px;
}

.locker-panel {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  text-align: left;
}

.locker-panel-title {
  color: #40e0d0;
  font-weight: 700;
  margin-bottom: 5px;
}

.locker-modal[hidden] {
  display: none;
}

.locker-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.locker-modal-content {
  width: min(92vw, 430px);
  border-radius: 24px;
  background: rgba(15, 18, 42, 0.96);
  border: 1px solid rgba(64, 224, 208, 0.35);
  padding: 20px;
}

.locker-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.locker-modal-header h2 {
  margin: 0;
  font-size: 22px;
}

.locker-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
}

.locker-settings-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.locker-setting-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.locker-setting-row small {
  color: rgba(255, 255, 255, 0.58);
}

.locker-setting-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.locker-setting-main-text {
  color: inherit;
  font-size: inherit;
  font-weight: 500;
}

body.locker-theme-light .locker-setting-main-text {
  color: #111827;
}


@media (max-width: 620px) {
  .locker-actions {
    grid-template-columns: repeat(4, 1fr);
  }

  .locker-actions > .locker-primary-btn,
  .locker-actions > .locker-secondary-btn {
    grid-column: 1 / -1;
  }

  .locker-actions > .locker-icon-btn {
    grid-column: span 1;
    width: 48px;
    height: 48px;
    justify-self: center;
  }
}

body.locker-body.locker-theme-light {
  background: url('noxbglight.png'), rgba(245, 247, 250, 0.78);
  background-size: auto 100%;
  background-position: center top;
  background-repeat: repeat-x;
  background-blend-mode: overlay;
  color: #111827;
}

body.locker-theme-light .locker-card {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(44, 122, 123, 0.28);
  box-shadow: 0 20px 70px rgba(20, 30, 55, 0.22);
}

body.locker-theme-light .locker-title-block p {
  color: rgba(17, 24, 39, 0.68);
}

body.locker-theme-light .locker-secondary-btn,
body.locker-theme-light .locker-icon-btn,
body.locker-theme-light .locker-close-btn {
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
  border: 1px solid rgba(44, 122, 123, 0.22);
}

body.locker-theme-light .locker-panel {
  background: rgba(255, 255, 255, 0.55);
  color: #111827;
}

body.locker-theme-light .locker-modal {
  background: rgba(245, 247, 250, 0.72);
}

body.locker-theme-light .locker-modal-content {
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  border-color: rgba(44, 122, 123, 0.26);
}

body.locker-theme-light .locker-setting-row {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
}

body.locker-theme-light .locker-setting-row small {
  color: rgba(17, 24, 39, 0.58);
}

.locker-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  text-align: left;
}

.locker-form[hidden] {
  display: none;
}

.locker-form h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
}

.locker-form textarea,
.locker-form input,
.locker-form select {
  width: 95%;
  max-width: 95%;
  box-sizing: border-box;
  justify-self: center;
  border-radius: 16px;
  border: 1px solid rgba(64, 224, 208, 0.28);
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.locker-form textarea {
  resize: vertical;
  min-height: 150px;
}

.locker-form-grid {
  width: 95%;
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.locker-form label {
  display: grid;
  gap: 6px;
}

.locker-form label span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.locker-form .locker-primary-btn {
  width: 95%;
  justify-self: center;
}

body.locker-theme-light .locker-form textarea,
body.locker-theme-light .locker-form input,
body.locker-theme-light .locker-form select {
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
  border-color: rgba(44, 122, 123, 0.26);
}

body.locker-theme-light .locker-form label span {
  color: rgba(17, 24, 39, 0.68);
}

@media (max-width: 620px) {
  .locker-form-grid {
    grid-template-columns: 1fr;
  }
}

.locker-phrase-box,
.locker-normalize-box {
  width: 95%;
  justify-self: center;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(64, 224, 208, 0.22);
}

.locker-phrase-label,
.locker-normalize-box span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.locker-phrase-value {
  min-height: 24px;
  margin-bottom: 10px;
  color: #40e0d0;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.locker-normalize-box code {
  display: block;
  color: #40e0d0;
  white-space: pre-wrap;
  word-break: break-word;
}

body.locker-theme-light .locker-phrase-box,
body.locker-theme-light .locker-normalize-box {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(44, 122, 123, 0.22);
}

body.locker-theme-light .locker-phrase-label,
body.locker-theme-light .locker-normalize-box span {
  color: rgba(17, 24, 39, 0.62);
}

.locker-phrase-hint {
  width: 95%;
  justify-self: center;
  margin-top: -8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

body.locker-theme-light .locker-phrase-hint {
  color: rgba(17, 24, 39, 0.58);
}

html {
  min-height: 100%;
  height: auto !important;
  overflow-y: auto !important;
}

body.locker-body {
  min-height: 100svh;
  height: auto !important;
  overflow-y: auto !important;
}

.locker-shell {
  min-height: 100svh;
  height: auto !important;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 56px;
}

@media (max-height: 780px) {
  .locker-shell {
    place-items: start center;
  }

  .locker-card {
    margin-top: 0;
    margin-bottom: 32px;
  }
}

.locker-help-btn {
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}

.locker-help-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.locker-help-modal {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.locker-help-content {
  cursor: pointer;
  max-height: min(86vh, 760px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.locker-help-text {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  text-align: left;
  line-height: 1.48;
}

.locker-help-text p {
  margin: 0;
}

.locker-help-row > span {
  font-size: 22px;
  font-weight: 900;
}

.locker-help-row-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

body.locker-theme-light .locker-help-btn {
  color: #111827;
}

.locker-nox-link {
  text-decoration: none;
}

.locker-nox-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.locker-help-nox-button {
  width: fit-content;
  min-height: 0;
  margin: 12px auto 0;
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(64, 224, 208, 0.28);
}

.locker-help-nox-button img {
  height: 40px;
  width: auto;
  display: block;
}

body.locker-theme-light .locker-help-nox-button {
  background: rgba(17, 24, 39, 0.08);
  border-color: rgba(44, 122, 123, 0.22);
}


.locker-seal-modal {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
}

.locker-seal-content {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.locker-seal-content h2 {
  margin: 0;
}

.locker-seal-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.locker-seal-orb {
  width: 78px;
  height: 52px;
  border-radius: 999px;
  border: 3px solid rgba(64, 224, 208, 0.35);
  border-top-color: rgba(255, 43, 214, 0.95);
  animation: lockerSealSpin 1s linear infinite;
  box-shadow: 0 0 30px rgba(64, 224, 208, 0.25);
}

@keyframes lockerSealSpin {
  to {
    transform: rotate(360deg);
  }
}

.locker-primary-btn:disabled,
.locker-secondary-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

body.locker-theme-light .locker-seal-content p {
  color: rgba(17, 24, 39, 0.7);
}


.locker-copy-ok {
  background: rgba(48, 160, 95, 0.34) !important;
  border-color: rgba(92, 220, 140, 0.55) !important;
  color: #eafff0 !important;
}

.locker-phrase-value.locker-copy-highlight {
  outline: 2px solid rgba(92, 220, 140, 0.65);
  background: rgba(48, 160, 95, 0.16);
  border-radius: 12px;
}

body.locker-theme-light .locker-copy-ok {
  background: rgba(48, 160, 95, 0.18) !important;
  border-color: rgba(48, 160, 95, 0.45) !important;
  color: #14532d !important;
}


.locker-bottom-image {
  display: block;
  width: min(20vw, 128px);
  height: auto;
  margin: 20px auto 4px;
  object-fit: contain;
  user-select: none;
}

@media (max-width: 620px) {
  .locker-bottom-image {
    width: min(30vw, 118px);
    margin-top: 18px;
  }
}

#locker-create-submit:not(.locker-ready) {
  opacity: 0.72;
}


/* NOX shared action hover */
.locker-actions > .locker-primary-btn,
.locker-actions > .locker-secondary-btn,
.locker-actions > .locker-icon-btn,
.locker-setting-row {
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.locker-actions > .locker-primary-btn:not(:disabled):hover,
.locker-actions > .locker-secondary-btn:not(:disabled):hover,
.locker-actions > .locker-icon-btn:not(:disabled):hover,
.locker-setting-row:not(:disabled):hover,
.locker-setting-row:not(:disabled):focus-visible {
  transform: translateY(-1px) scale(1.015);
  filter: brightness(1.06);
  box-shadow: 0 0 18px rgba(64, 224, 208, 0.20), 0 0 28px rgba(255, 43, 214, 0.08);
}

.locker-actions > .locker-icon-btn:not(:disabled):hover img,
.locker-setting-row:not(:disabled):hover img,
.locker-setting-row:not(:disabled):focus-visible img {
  filter: brightness(1.12);
}
/* /NOX shared action hover */


.locker-bottom-image-hidden {
  display: none !important;
}





.locker-honeypot {
  position: fixed !important;
  left: -100000px !important;
  top: -100000px !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  appearance: none !important;
}


#locker-status[data-type="warning"],
#locker-status[data-type="error"] {
  color: #ffb020;
  font-weight: 700;
}

body.locker-theme-light #locker-status[data-type="warning"],
body.locker-theme-light #locker-status[data-type="error"] {
  color: #b45309;
}


/* NOX Locker tactile button feedback */
#locker-regenerate-phrase,
#locker-create-submit {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, opacity 160ms ease;
}

#locker-regenerate-phrase:not(:disabled):hover,
#locker-regenerate-phrase:not(:disabled):focus-visible,
#locker-create-submit.locker-ready:not(:disabled):hover,
#locker-create-submit.locker-ready:not(:disabled):focus-visible {
  transform: translateY(-1px) scale(1.015);
  filter: brightness(1.06);
  box-shadow: 0 0 18px rgba(64, 224, 208, 0.20), 0 0 28px rgba(255, 43, 214, 0.08);
}

#locker-regenerate-phrase:not(:disabled):active,
#locker-create-submit:not(:disabled):active {
  transform: translateY(0) scale(0.995);
  filter: brightness(1.10);
  box-shadow: 0 0 18px rgba(64, 224, 208, 0.24), 0 0 28px rgba(255, 43, 214, 0.10);
  transition-duration: 100ms;
}


/* NOX Locker opened capsule message */
.locker-opened-message {
  box-sizing: border-box;
  width: 100%;
  margin: 14px 0 0;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(rgba(4, 7, 20, 0.86), rgba(4, 7, 20, 0.86)) padding-box,
    linear-gradient(135deg, rgba(255, 43, 214, 0.72), rgba(64, 224, 208, 0.82)) border-box;
  color: #7fffee;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.48;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
  box-shadow: 0 0 18px rgba(64, 224, 208, 0.10), inset 0 0 20px rgba(255, 43, 214, 0.035);
}

body.locker-theme-light .locker-opened-message {
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)) padding-box,
    linear-gradient(135deg, rgba(190, 24, 160, 0.55), rgba(14, 116, 144, 0.62)) border-box;
  color: #0f766e;
  box-shadow: 0 0 18px rgba(14, 116, 144, 0.10), inset 0 0 20px rgba(190, 24, 160, 0.03);
}


.locker-terms-btn img {
  width: 24px;
  height: 24px;
}

.locker-terms-content {
  max-height: min(86vh, 760px);
  overflow-y: auto;
}

.locker-terms-text p {
  margin: 0 0 13px;
}


/* NOX main menu icon border only */
.locker-actions > .locker-icon-btn {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) padding-box,
    linear-gradient(135deg, rgba(255, 43, 214, 0.18), rgba(64, 224, 208, 0.18)) border-box;
}

body.locker-theme-light .locker-actions > .locker-icon-btn {
  background:
    linear-gradient(rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.08)) padding-box,
    linear-gradient(135deg, rgba(255, 43, 214, 0.14), rgba(64, 224, 208, 0.14)) border-box;
}


/* NOX Locker compact status + compact normalized key */
.locker-panel.locker-panel-compact {
  padding: 8px 10px;
}

.locker-panel.locker-panel-compact .locker-panel-title {
  font-size: 11px;
  line-height: 1.15;
  margin-bottom: 2px;
}

.locker-panel.locker-panel-compact #locker-status {
  font-size: 11px;
  line-height: 1.25;
}

.locker-panel.locker-panel-compact #locker-status[data-type="warning"],
.locker-panel.locker-panel-compact #locker-status[data-type="error"] {
  font-size: 13px;
  line-height: 1.35;
}

.locker-normalize-box {
  padding: 4px 7px;
  border-radius: 10px;
}

.locker-normalize-box span {
  margin-bottom: 1px;
  font-size: 8px;
  line-height: 1.05;
}

.locker-normalize-box code {
  font-size: 8px;
  line-height: 1.05;
}


/* NOX Locker mobile centering fix */
@media (max-width: 620px) {
  body.locker-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .locker-shell {
    width: 96vw;
    max-width: 96vw;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    justify-items: center;
  }

  .locker-modal {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    justify-items: center;
  }

  .locker-card {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }

  .locker-modal-content {
    width: 92%;
    max-width: 396px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }
}


/* NOX Locker regenerate phrase click flash */
#locker-regenerate-phrase.locker-regenerate-flash {
  animation: lockerRegenerateFlash 260ms ease-out;
}

@keyframes lockerRegenerateFlash {
  0% {
    transform: translateY(1px) scale(0.992);
    filter: brightness(1.18);
    box-shadow: 0 0 10px rgba(64, 224, 208, 0.30), 0 0 18px rgba(255, 43, 214, 0.18);
  }
  45% {
    transform: translateY(-1px) scale(1.018);
    filter: brightness(1.16);
    box-shadow: 0 0 26px rgba(64, 224, 208, 0.36), 0 0 42px rgba(255, 43, 214, 0.20);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1.04);
    box-shadow: 0 0 12px rgba(64, 224, 208, 0.18), 0 0 24px rgba(255, 43, 214, 0.08);
  }
}
