/* ==========================================================================
   Password Protection Modal & Page Gate Styles
   ========================================================================== */
html.is-locked body {
  overflow: hidden !important;
}
html.is-locked body > main,
html.is-locked body > header,
html.is-locked body > footer,
html.is-locked .wrap,
html.is-locked .hero,
html.is-locked .sec,
html.is-locked .visual {
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
  transition: filter .3s ease;
}

.pw-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.pw-modal.open {
  opacity: 1;
  visibility: visible;
}
.pw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 1, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pw-dialog {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 20px;
  width: min(400px, 92vw);
  padding: 28px 24px 24px;
  box-shadow: 0 30px 60px -20px rgba(90, 30, 120, .35), 0 0 0 1px rgba(111, 24, 187, 0.08);
  transform: translateY(12px) scale(.98);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  box-sizing: border-box;
}
.pw-modal.open .pw-dialog {
  transform: translateY(0) scale(1);
}
.pw-dialog.shake {
  animation: modalShake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}
@keyframes modalShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
  40%, 60% { transform: translate3d(5px, 0, 0); }
}
.pw-dialog h3 {
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #100114;
}
.pw-dialog p {
  margin: 0 0 18px;
  font-size: 14px;
  color: #344054;
  line-height: 1.5;
}
.pw-dialog input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #ECE1F7;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  background: #fff;
  color: #100114;
}
.pw-dialog input:focus {
  border-color: #6137B5;
  box-shadow: 0 0 0 3px rgba(97, 55, 181, .15);
}
.pw-dialog input.error {
  border-color: #E11D48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, .12);
}
.pw-error {
  display: none;
  color: #E11D48;
  font-size: 13px;
  margin: 8px 0 0;
  font-weight: 500;
}
.pw-error.show {
  display: block;
}
.pw-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.pw-actions button {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, filter .2s, background .2s;
}
.pw-actions button:active {
  transform: scale(.97);
}
.pw-cancel {
  background: #F3F0F8;
  color: #100114;
}
.pw-cancel:hover {
  background: #EBE6F4;
}
.pw-submit {
  background: linear-gradient(90deg, #A213C5 0%, #184DBB 100%);
  color: #fff;
}
.pw-submit:hover {
  filter: brightness(1.08);
}
