:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
body {
  margin: 0;
  padding: 24px;
  background: #007BFF;
  text-align: center;
}
.card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}
.card-inner {
  max-width: 90%;
  margin: 0 auto;
}
.header {
  padding: 10px;
}
.header h1 {
  font-size: 28px;
}
.sub {
  margin: 0 0 14px;
  color: #556;
}
.info {
  background: #f3f5f9;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 20px 0 20px 0;
  font-size: 14px;
  color: #334;
}
.info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}
/* Email block styled like a plan row, but stacked */
.email-block {
  width: 100%;
  padding: 0;
  background: #fff;
  text-align: center;
  margin-bottom: 10px; /* match .plans gap */
  box-sizing: border-box;
}

.email-title {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px 0;
}

.email-input {
  width: 100%;
  text-align: center;
  padding: 8px 10px 8px 10px;
  border-radius: 12px;
  border: 1px solid #d7dbe6;
  font-size: 18px;
  box-sizing: border-box;
  outline: none;
}

.email-input:focus {
  border-color: #007BFF;
}

.email-help {
  margin-top: 2px;
  margin-bottom: 12px;
  color: #556;
  font-size: 11px;
}

.plans {
  display: grid;
  gap: 10px;
}
.plan-trial {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #d7dbe6;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.plan-trial:active {
  transform: scale(.99);
}
.planTitle-trial {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 0px;
  font-size: 16px;
  font-weight: 650;
}
.planMeta-trial {
  font-size: 12px;
  font-weight: 200;
  color: #556;
  opacity: 0.75;
}
.plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d7dbe6;
  background: #fff;
  cursor: pointer;
}
.plan:active {
  transform: scale(.99);
}
.planTitle {
  font-size: 16px;
  font-weight: 650;
}

.planMeta {
  font-size: 14px;
  font-weight: 200;
  color: #556;
}
.actions {
  color: #C60303;
  margin-top: 18px;
  min-height: 18px;
}
.small {
  margin: 0;
  color: #556;
  font-size: 14px;
  padding-bottom: 30px;
}
.footer {
  margin-top: 20px;
  color: #667;
}
.tiny {
  margin: 0;
  padding-bottom: 10px;
  font-size: 12px;
}
.retry-link {
  color: #3b6cff;
  text-decoration: none;
  font-weight: 500;
}
.retry-link:hover {
  text-decoration: underline;
}
/* Terms popup CSS start */
.terms-link {
  text-align: center;
  margin-top: 12px;
}
.terms-link a {
  font-size: 12px;
  color: #6b7280;
  text-decoration: underline;
}
.modal {
  position: fixed;
  padding: 24px;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.modal:target {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 20px 22px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  position: relative;
  animation: pop 0.18s ease-out;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  text-decoration: none;
  color: #9ca3af;
}
.modal-close:hover {
  color: #111827;
}
.modal-body {
  font-size: 16px;
  color: #374151;
  line-height: 1.5;
}
.modal-body .small {
  font-size: 14px;
  color: #6b7280;
}
@keyframes pop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Terms popup CSS end */

code {
  background: rgba(0, 0, 0, .06);
  padding: 2px 6px;
  border-radius: 6px;
}
#payStatus {
  white-space: pre-line;
}
#status {
  white-space: pre-line;
}
.email-text {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #d7dbe6;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
