/* ── Password Protection Dialog ── */

#pp-dialogWrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: table;
  background: linear-gradient(90deg, #e8f0fe 0%, #f8fafc 50%, #fef7ed 100%);
  z-index: 200;
  transition: opacity 0.4s ease;
}

#pp-dialogWrapCell {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

#pp-mainDialog {
  max-width: 400px;
  margin: 5px auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  text-align: left;
}

#pp-mainDialog > * {
  padding: 10px 30px;
}

#pp-dialogText {
  color: #000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 500;
  text-align: center;
}

/* Lock icon */
.pp-lock-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: block;
  color: #000;
  opacity: 0.8;
}
.pp-lock-icon svg {
  width: 100%;
  height: 100%;
}

/* Password area */
#pp-passArea {
  padding: 20px 30px;
  background: transparent;
}
#pp-passArea > * {
  margin: 5px auto;
}

#pp-pass {
  width: 100%;
  height: 48px;
  font-size: 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0 16px;
  color: #000;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  letter-spacing: 0.5px;
  box-sizing: border-box;
}
#pp-pass::placeholder {
  color: rgba(0, 0, 0, 0.5);
  font-weight: 400;
}
#pp-pass:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}
#pp-pass:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Label */
#pp-passwordPrompt {
  color: #000;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.3px;
}

/* Messages */
#pp-messageWrapper {
  text-align: center;
  margin-bottom: 8px;
  min-height: 24px;
}
.pp-notify {
  display: none;
}
#pp-invalidPass {
  color: red;
}
#pp-success {
  color: green;
}
.pp-error {
  display: none;
  color: red;
}

/* Submit button */
#pp-submitPass {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border-radius: 9999px;
  background: #000;
  border: 1px solid #000;
  color: #fff;
  padding: 16px 32px;
  margin: 16px auto 0;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  min-width: 160px;
  min-height: 56px;
  opacity: 0.5;
  pointer-events: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
#pp-submitPass.enabled {
  opacity: 1;
  pointer-events: auto;
}
#pp-submitPass.enabled:hover {
  background: #333;
  border-color: #333;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
#pp-submitPass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
}
#pp-submitPass.enabled:hover::before {
  transform: translateX(0);
}
#pp-submitPass span {
  position: relative;
  z-index: 10;
}

/* Get in touch link */
#pp-getInTouch {
  text-align: center;
  margin-top: 24px;
  padding: 0 30px;
}
#pp-getInTouch a {
  color: #000;
  text-decoration: underline;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
#pp-getInTouch a:hover {
  opacity: 1;
}

/* Content frame */
#pp-contentFrame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 199;
  border: none;
}
