/* Abbey Premium paywall — matches the Abbey theme (dark abbey brown + gold).
   Self-contained: declares its own fonts so it works before app CSS exists. */

@font-face {
  font-family: "UnifrakturMaguntia";
  src: url("../fonts/UnifrakturMaguntia-Book.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EBGaramond-Regular.ttf") format("truetype");
  font-display: swap;
}

body.abbey-pw-lock { overflow: hidden; }

.abbey-pw-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 6, 2, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: abbey-pw-fade 0.25s ease;
}
@keyframes abbey-pw-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.abbey-pw-card {
  position: relative;
  width: 100%;
  max-width: 26rem;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #241a0e, #120b05);
  border: 1px solid rgba(212, 180, 110, 0.35);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem 1.5rem;
  color: #d9b872;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  text-align: center;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.6);
  animation: abbey-pw-rise 0.3s ease;
}
@keyframes abbey-pw-rise {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.abbey-pw-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: rgba(212, 180, 110, 0.55);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.abbey-pw-close:hover { color: #d9b872; }

.abbey-pw-cross {
  font-size: 1.5rem;
  color: rgba(212, 180, 110, 0.8);
  margin-bottom: 0.25rem;
}

.abbey-pw-title {
  font-family: "UnifrakturMaguntia", "EB Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  color: #d9b872;
  margin: 0 0 0.25rem;
}

.abbey-pw-subtitle {
  color: rgba(212, 180, 110, 0.65);
  font-size: 1rem;
  margin: 0 0 1.25rem;
}

.abbey-pw-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: left;
}
.abbey-pw-features li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: rgba(255, 248, 235, 0.9);
  font-size: 1rem;
  line-height: 1.4;
}
.abbey-pw-features li::before {
  content: "✦";
  position: absolute;
  left: 0.25rem;
  color: #d4b46e;
}

.abbey-pw-plans {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.abbey-pw-plan {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(212, 180, 110, 0.06);
  border: 1px solid rgba(212, 180, 110, 0.25);
  border-radius: 0.9rem;
  color: #d9b872;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.abbey-pw-plan-selected {
  border-color: #d4b46e;
  background: rgba(212, 180, 110, 0.14);
}

.abbey-pw-plan-radio {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(212, 180, 110, 0.5);
}
.abbey-pw-plan-selected .abbey-pw-plan-radio {
  border-color: #d4b46e;
  background: radial-gradient(circle, #d4b46e 45%, transparent 50%);
}

.abbey-pw-plan-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
.abbey-pw-plan-label { font-size: 1.05rem; font-weight: 700; }
.abbey-pw-plan-price { font-size: 0.9rem; color: rgba(212, 180, 110, 0.7); }

.abbey-pw-badge {
  flex: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1005;
  background: linear-gradient(135deg, #d4b46e, #a67c2e);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.abbey-pw-cta {
  display: block;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: #1a1005;
  background: linear-gradient(135deg, #d4b46e, #a67c2e);
}
.abbey-pw-cta:disabled { opacity: 0.7; cursor: default; }

.abbey-pw-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: rgba(212, 180, 110, 0.55);
}

.abbey-pw-restore {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: rgba(212, 180, 110, 0.4);
  line-height: 1.4;
}

.abbey-pw-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 1rem);
  z-index: 10000;
  background: linear-gradient(135deg, #241a0e, #120b05);
  border: 1px solid rgba(212, 180, 110, 0.4);
  color: #d9b872;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.abbey-pw-toast-show {
  opacity: 1;
  transform: translate(-50%, 0);
}
