/* =====================================================
   xSubscriber — Frontend CSS  v1.2.8
   [xsub_plans] shortcode styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&display=swap');

.xsub-plans-wrap {
  font-family: "Heebo", system-ui, sans-serif;
  direction: rtl;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

/* ── Plans grid ─── */
.xsub-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.xsub-plan-card-wrap {
  position: relative;
  display: flex;
}

.xsub-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 1;
  font-family: "Heebo", sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.xsub-plan-card {
  background: #fff;
  border: 1.5px solid #e8e6e2;
  border-radius: 16px;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.xsub-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,.1);
  border-color: var(--plan-color, #4f46e5);
}
.xsub-plan-popular {
  border-color: var(--plan-color, #4f46e5);
  border-width: 2px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.xsub-plan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.xsub-plan-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}
.xsub-plan-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.xsub-plan-price {
  margin-bottom: 0;
}
.xsub-plan-amount {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.xsub-plan-period {
  font-size: 13px;
  color: #999;
  display: block;
  margin-top: 5px;
}

.xsub-plan-desc {
  font-size: 13.5px;
  color: #666;
  line-height: 1.65;
  flex: 1;
  margin: 14px 0 20px;
  padding-top: 14px;
  border-top: 1px solid #f0eeea;
}

.xsub-plan-btn {
  width: 100%;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: "Heebo", sans-serif;
  cursor: pointer;
  margin-top: auto;
  letter-spacing: 0.01em;
  transition: opacity .15s, transform .1s;
}
.xsub-plan-btn:hover  { opacity: .88; transform: translateY(-1px); }
.xsub-plan-btn:active { transform: translateY(0); }

/* ── Registration panel ─── */
.xsub-reg-panel {
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 0;
}

.xsub-reg-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.xsub-back-btn {
  background: none;
  border: 1.5px solid #e8e6e2;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: "Heebo", sans-serif;
  color: #555;
  cursor: pointer;
  transition: background .12s;
}
.xsub-back-btn:hover { background: #f5f5f5; }

.xsub-reg-plan-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  background: #f5f4f1;
  padding: 6px 12px;
  border-radius: 20px;
}

.xsub-reg-body {
  background: #fff;
  border: 1px solid #e8e6e2;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}

.xsub-reg-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a1a;
}
.xsub-reg-subtitle {
  font-size: 14px;
  color: #888;
  margin: 0 0 24px;
}

.xsub-reg-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.xsub-reg-field { display: flex; flex-direction: column; gap: 6px; }

.xsub-reg-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #444;
}
.xsub-req { color: #ef4444; margin-inline-start: 2px; }

.xsub-reg-input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  font-family: "Heebo", sans-serif;
  color: #1a1a1a;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .12s, box-shadow .12s;
}
.xsub-reg-input:focus {
  outline: none;
  border-color: var(--xsub-color, #4f46e5);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--xsub-color, #4f46e5) 15%, transparent);
}
.xsub-reg-input::placeholder { color: #bbb; }

/* Terms */
.xsub-reg-terms { margin-bottom: 16px; }
.xsub-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.xsub-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--xsub-color, #4f46e5);
  flex-shrink: 0;
}
.xsub-terms-label a { color: var(--xsub-color, #4f46e5); text-decoration: underline; }

/* Error */
.xsub-reg-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #dc2626;
  margin-bottom: 14px;
}

/* Submit */
.xsub-reg-submit {
  width: 100%;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  font-family: "Heebo", sans-serif;
  cursor: pointer;
  transition: opacity .15s;
}
.xsub-reg-submit:hover    { opacity: .9; }
.xsub-reg-submit:disabled { opacity: .65; cursor: not-allowed; }

/* ── Thank you screen ─── */
.xsub-thankyou {
  text-align: center;
  padding: 16px 0 8px;
}
.xsub-thankyou-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.xsub-thankyou-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}
.xsub-thankyou-msg {
  font-size: 14.5px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 400px;
  margin-inline: auto;
}
.xsub-thankyou-redirect {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
}
.xsub-thankyou-btn {
  display: inline-block;
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Heebo", sans-serif;
  text-decoration: none;
  transition: opacity .15s;
}
.xsub-thankyou-btn:hover { opacity: .9; }
