.pcseal-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 15, 26, .6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}
.pcseal-popup-overlay.is-visible { opacity: 1; }
.pcseal-popup-overlay[hidden] { display: none; }

.pcseal-popup {
  position: relative;
  width: 100%;
  max-width: 520px;
  background:
    radial-gradient(circle at 15% 0%, rgba(29, 148, 255, .22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(29, 148, 255, .12), transparent 50%),
    linear-gradient(160deg, var(--surface) 0%, var(--bg) 60%, var(--masthead-bg) 100%);
  color: var(--ink);
  border: 1px solid rgba(120, 170, 255, .18);
  border-radius: 18px;
  padding: 30px 28px 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px -14px rgba(0, 8, 24, .6), 0 0 40px -12px rgba(29, 148, 255, .35);
  transform: translateY(18px) scale(.96);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.pcseal-popup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 16px rgba(29, 148, 255, .6);
}
.pcseal-popup-overlay.is-visible .pcseal-popup { transform: translateY(0) scale(1); }

.pcseal-popup-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(29, 148, 255, .15);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(111, 195, 255, .25), 0 0 20px -4px rgba(29, 148, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pcseal-popup h2 { margin: 0 0 12px; font-size: 1.25rem; padding-right: 24px; color: var(--ink); }
.pcseal-popup-message { font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.pcseal-popup-message p:last-child { margin-bottom: 0; }
.pcseal-popup-message a { color: var(--accent-strong); font-weight: 700; }

.pcseal-popup-progress {
  margin-top: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.pcseal-popup-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  animation-name: pcseal-popup-countdown-shrink;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes pcseal-popup-countdown-shrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.pcseal-popup-countdown {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: rgba(200, 214, 235, .65);
}

.pcseal-popup-dismiss-forever {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(200, 214, 235, .75);
  cursor: pointer;
  user-select: none;
}
.pcseal-popup-dismiss-forever input {
  cursor: pointer;
}

.pcseal-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(200, 214, 235, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: rgba(200, 214, 235, .8);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.pcseal-popup-close:hover,
.pcseal-popup-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .4);
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .pcseal-popup { padding: 26px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .pcseal-popup-overlay,
  .pcseal-popup {
    transition: none;
  }
  .pcseal-popup-overlay.is-visible .pcseal-popup { transform: none; }
  .pcseal-popup-progress { display: none; }
}
