/* Paywall Modal Styles */

.paywall-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.paywall-modal {
  background: #1a1d29;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.paywall-header {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.paywall-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.paywall-close {
  background: none;
  border: none;
  color: #888;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.paywall-close:hover {
  background: #2a2d3a;
  color: #fff;
}

.paywall-content {
  padding: 28px;
}

.paywall-message {
  margin-bottom: 28px;
  text-align: center;
}

.paywall-primary-message {
  font-size: 18px;
  color: #ffffff;
  margin: 0 0 12px 0;
  font-weight: 500;
}

.paywall-secondary-message {
  font-size: 15px;
  color: #888;
  margin: 0;
}

.paywall-usage-stats {
  background: #0f1117;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 28px;
}

.paywall-usage-stats h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.usage-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usage-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.usage-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #ccc;
}

.usage-bar-count {
  font-weight: 600;
  color: #fff;
}

.usage-bar-track {
  height: 8px;
  background: #1a1d29;
  border-radius: 4px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #5ba3f5);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.usage-bar-container.maxed .usage-bar-fill {
  background: linear-gradient(90deg, #e24a4a, #f55b5b);
}

.paywall-features {
  margin-bottom: 28px;
}

.paywall-features h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.paywall-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.paywall-features li {
  color: #ccc;
  font-size: 14px;
  padding: 8px 12px;
  background: #0f1117;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.paywall-pricing {
  margin-bottom: 28px;
}

.pricing-card {
  background: linear-gradient(135deg, #4a90e2, #5ba3f5);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.price {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.price span {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.9;
}

.price-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.paywall-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.paywall-upgrade-btn {
  background: linear-gradient(135deg, #4a90e2, #5ba3f5);
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.paywall-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.paywall-upgrade-btn:active {
  transform: translateY(0);
}

.paywall-upgrade-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.paywall-maybe-later-btn {
  background: transparent;
  color: #888;
  border: 1px solid #2a2d3a;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.paywall-maybe-later-btn:hover {
  background: #2a2d3a;
  color: #fff;
  border-color: #3a3d4a;
}

/* Pro Badge */
.pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #4a90e2, #5ba3f5);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 8px;
  margin-right: 4px;
}

/* Responsive */
@media (max-width: 600px) {
  .paywall-modal {
    width: 95%;
    max-height: 95vh;
  }

  .paywall-header {
    padding: 20px;
  }

  .paywall-header h2 {
    font-size: 20px;
  }

  .paywall-content {
    padding: 20px;
  }

  .paywall-features ul {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 36px;
  }

  .price span {
    font-size: 16px;
  }
}

/* Success page styles */
.success-container {
  max-width: 600px;
  margin: 100px auto;
  padding: 40px;
  text-align: center;
  background: #1a1d29;
  border-radius: 12px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.success-title {
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.success-message {
  font-size: 16px;
  color: #888;
  margin-bottom: 32px;
}

.success-btn {
  background: linear-gradient(135deg, #4a90e2, #5ba3f5);
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}
