.papop-root,
.papop-root * {
  box-sizing: border-box;
}

.papop-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.papop-root.papop-open {
  display: flex;
}

.papop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: papop-fade 0.3s ease-out both;
}

.papop-panel {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0f172a;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.55);
  animation: papop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.papop-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.papop-art {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 48px 40px 16px;
}

.papop-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(135deg, #facc15 0 22px, transparent 22px 44px);
}

.papop-cover {
  position: relative;
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 28px 40px -10px rgba(0, 0, 0, 0.7);
  animation: papop-cover 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.papop-body {
  padding: 16px 32px 40px;
}

.papop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fde047;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.papop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f172a;
  animation: papop-pulse 2.2s infinite;
}

.papop-title {
  margin: 20px 0 0;
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.papop-title span {
  color: #fde047;
}

.papop-sub {
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  font-weight: 300;
}

.papop-note {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 300;
}

.papop-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.papop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color 0.3s, border-color 0.3s;
  cursor: pointer;
}

.papop-btn-buy {
  border: 1px solid #fde047;
  background: #fde047;
  color: #0f172a !important;
  font-weight: 600;
}

.papop-btn-buy:hover {
  border-color: #fef08a;
  background: #fef08a;
}

.papop-btn-buy svg {
  transition: transform 0.3s;
}

.papop-btn-buy:hover svg {
  transform: translate(2px, -2px);
}

.papop-btn-page {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff !important;
  font-weight: 300;
}

.papop-btn-page:hover {
  border-color: #fff;
}

.papop-btn:focus-visible,
.papop-close:focus-visible {
  outline: 2px solid #fde047;
  outline-offset: 2px;
}

.papop-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.papop-close:hover {
  background: #fff;
  color: #0f172a;
}

.papop-r {
  opacity: 0;
  animation: papop-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.livros-card-promo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(127, 29, 29, 0.35);
}

@media (min-width: 720px) {
  .papop-grid {
    grid-template-columns: 5fr 6fr;
  }

  .papop-art {
    padding: 48px;
  }

  .papop-cover {
    width: 100%;
    max-width: 260px;
  }

  .papop-body {
    padding: 48px 48px 48px 16px;
  }

  .papop-title {
    font-size: 48px;
  }
}

@keyframes papop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes papop-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes papop-cover {
  from { opacity: 0; transform: translateY(50px) rotate(-6deg) scale(0.92); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes papop-rise {
  from { opacity: 0; transform: translateY(24px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes papop-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(15, 23, 42, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .papop-backdrop,
  .papop-panel,
  .papop-cover,
  .papop-r,
  .papop-dot {
    animation: none;
    opacity: 1;
  }
}
