/* ═══ PAYWALL MODAL ═══ */

.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.paywall-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.paywall-card {
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 60%, #4c1d95 100%);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 28px 24px 36px;
  position: relative;
  transform: translateY(40px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
}
.paywall-overlay.open .paywall-card {
  transform: translateY(0);
}
.paywall-close {
  position: absolute;
  top: 16px;
  left: 18px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.paywall-close:hover { background: rgba(255,255,255,.28); }

.paywall-hero {
  text-align: center;
  margin-bottom: 20px;
}
.paywall-fox {
  width: auto;
  height: 100px;
  filter: drop-shadow(0 6px 20px rgba(124,91,248,.5));
  margin-bottom: 10px;
}
.paywall-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  direction: rtl;
  margin-bottom: 4px;
}
.paywall-context-msg {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  direction: rtl;
}

.paywall-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.paywall-feature {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #e0d9ff;
  direction: rtl;
  text-align: right;
  border: 1px solid rgba(255,255,255,.12);
}

.paywall-plans {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.paywall-plan {
  flex: 1;
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: 2px solid transparent;
}
.paywall-plan:active { transform: scale(.97); }
.paywall-plan-basic {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}
.paywall-plan-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 20px rgba(245,158,11,.4);
  border-color: #fbbf24;
}
.paywall-plan-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  direction: rtl;
}
.paywall-plan-price {
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.paywall-plan-desc {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  text-align: center;
  direction: rtl;
}

.paywall-trial-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #7c5bf8, #4936e8);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(124,91,248,.4);
  transition: transform .15s, box-shadow .15s;
  min-height: 52px;
  direction: rtl;
}
.paywall-trial-btn:active {
  transform: scale(.97);
  box-shadow: 0 2px 10px rgba(124,91,248,.3);
}

.paywall-dismiss-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 14px;
  cursor: pointer;
  min-height: 44px;
  direction: rtl;
}
.paywall-dismiss-btn:active { background: rgba(255,255,255,.15); }

/* Premium lock overlay on game cards */
.gcard-premium-locked {
  position: relative;
}
.gcard-premium-locked::after {
  content: '⭐';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  background: rgba(0,0,0,.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  line-height: 26px;
  text-align: center;
}
.gcard-premium-locked .gcard-title::after {
  content: ' 🔒';
  font-size: 11px;
  opacity: .8;
}

/* Premium status badge in parent dashboard */
.pd-premium-card {
  background: linear-gradient(135deg, rgba(124,91,248,.2), rgba(73,54,232,.2));
  border: 1px solid rgba(124,91,248,.35);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.pd-premium-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  direction: rtl;
}
.pd-premium-badge-active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.pd-premium-badge-free {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}
.pd-premium-label {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  direction: rtl;
}
.pd-premium-activate-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #7c5bf8, #4936e8);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  direction: rtl;
}
.pd-premium-activate-btn:active { opacity: .85; }

/* Desktop paywall centered */
@media (min-width: 900px) {
  .paywall-overlay {
    align-items: center;
  }
  .paywall-card {
    border-radius: 24px;
    max-width: 420px;
    margin-bottom: 0;
  }
  .paywall-overlay.open .paywall-card {
    transform: scale(1);
  }
  .paywall-card {
    transform: scale(.96);
  }
}
