.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(69, 46, 31, 0.56);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.paywall-overlay.paywall-show {
  opacity: 1;
}

.paywall-overlay.paywall-closing {
  opacity: 0;
}

.paywall-card {
  width: min(468px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 223, 158, 0.56), transparent 32%),
    linear-gradient(145deg, #fffaf0, #fff0dd);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 28px 80px rgba(42, 28, 19, 0.32);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.36s cubic-bezier(0.19, 1, 0.22, 1);
}

.paywall-overlay.paywall-show .paywall-card {
  transform: translateY(0) scale(1);
}

.paywall-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  color: #8a6246;
  background: rgba(255,255,255,0.68);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.paywall-card-inner {
  position: relative;
  padding: 30px 28px 24px;
}

.paywall-header {
  text-align: center;
  margin-bottom: 18px;
}

.paywall-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 7px;
}

.paywall-heart {
  color: #e98970;
  font-size: 1.28rem;
  animation: paywallHeartbeat 1.5s ease-in-out infinite;
}

@keyframes paywallHeartbeat {
  50% {
    transform: scale(1.22);
  }
}

.paywall-title {
  color: #493425;
  font-size: 1.34rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.paywall-subtitle,
.paywall-qr-tip,
.paywall-hint,
.paywall-msg-body,
.paywall-msg-warm2 {
  color: #8c725d;
  line-height: 1.75;
}

.paywall-subtitle {
  font-size: 0.82rem;
}

.paywall-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.paywall-qr-wrapper {
  position: relative;
  width: 126px;
  height: 126px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 12px 30px rgba(99, 64, 39, 0.15);
}

.paywall-qr-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.paywall-qr-glow {
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 213, 125, 0.42), transparent 62%);
  animation: paywallGlow 2.6s ease-in-out infinite;
}

@keyframes paywallGlow {
  50% {
    opacity: 0.45;
    transform: scale(1.05);
  }
}

.paywall-qr-tip {
  margin-top: -5px;
  font-size: 0.78rem;
}

.paywall-qr-tip strong,
.paywall-msg-body strong {
  color: #d8784f;
}

.paywall-message {
  width: 100%;
  text-align: center;
}

.paywall-msg-warm {
  margin: 0 0 10px;
  color: #604231;
  font-weight: 900;
}

.paywall-msg-body,
.paywall-msg-warm2 {
  margin: 0 0 10px;
  font-size: 0.86rem;
}

.paywall-msg-cute {
  margin: 0 0 10px;
  padding: 10px 13px;
  border-radius: 16px;
  color: #9e684a;
  background: rgba(255, 230, 197, 0.72);
  line-height: 1.75;
  font-size: 0.84rem;
}

.paywall-footer {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px dashed rgba(159, 107, 69, 0.24);
}

.paywall-hint {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-bottom: 13px;
  font-size: 0.76rem;
}

.paywall-btns {
  display: flex;
  gap: 10px;
}

.paywall-btn {
  flex: 1;
  min-height: 42px;
  border: none;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.paywall-btn-support {
  color: #fffaf0;
  background: linear-gradient(135deg, #db8750, #efb16b);
  box-shadow: 0 10px 24px rgba(217, 130, 76, 0.25);
}

.paywall-btn-later {
  color: #76543d;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(161, 110, 70, 0.14);
}

.paywall-studio {
  margin-top: 14px;
  text-align: center;
  color: rgba(133, 94, 66, 0.52);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.paywall-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10001;
  transform: translate(-50%, 18px);
  opacity: 0;
  padding: 12px 18px;
  border-radius: 16px;
  color: #fffaf0;
  background: rgba(79, 56, 39, 0.94);
  box-shadow: 0 14px 34px rgba(61, 43, 32, 0.24);
  transition: transform 0.35s ease, opacity 0.35s ease;
  white-space: nowrap;
}

.paywall-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px) {
  .paywall-card-inner {
    padding: 26px 18px 18px;
  }

  .paywall-btns {
    flex-direction: column;
  }

  .paywall-toast {
    width: calc(100vw - 28px);
    white-space: normal;
    text-align: center;
  }
}
