.cel-main {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 24px;
}
.cel-layout {
  width: 100%;
  max-width: 720px;
}
.cel-card {
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  padding: 44px 40px;
}
.cel-card-center { text-align: center; }
.cel-title {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--lp-cream);
  margin: 10px 0 14px;
  line-height: 1.25;
}
.cel-sub {
  color: var(--lp-body);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 30px;
}
.cel-section-heading {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--lp-cream);
  margin: 30px 0 6px;
}
.cel-section-note {
  color: var(--lp-muted);
  font-size: 13px;
  margin: 0 0 14px;
}
.cel-row { display: flex; gap: 16px; }
.cel-row .cel-field { flex: 1; min-width: 0; }
.cel-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-body);
  margin-bottom: 16px;
}
.cel-field input, .cel-field select, .cel-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  background: #0f1521;
  color: var(--lp-cream);
}
/* A native <input type="date">'s calendar icon defaults to a dark
   glyph meant for light backgrounds — on this dark theme it was nearly
   invisible, making a fully-functional date picker look like a plain
   text field with no calendar affordance at all. color-scheme tells
   the browser to draw its own native controls (the icon, and the
   popup calendar itself in Chrome/Edge) in a dark-appropriate style
   instead of just inverting one icon; the invert()/opacity fallback
   below covers browsers that don't act on color-scheme for this. */
.cel-field input[type="date"] {
  color-scheme: dark;
}
.cel-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.9);
  opacity: 0.85;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.cel-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background: rgba(201,151,76,0.15);
}
.cel-field input:focus, .cel-field select:focus, .cel-field textarea:focus {
  outline: none;
  border-color: var(--lp-gold);
}
.cel-field input:disabled { opacity: 0.5; }
.cel-field-inline { justify-content: flex-end; }
.cel-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin-bottom: 8px;
}
.cel-checkbox-row input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; }
.cel-optional { font-weight: 400; color: var(--lp-muted); }

.cel-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}
.cel-tier-card {
  position: relative;
  display: block;
  background: var(--lp-card-bg-soft);
  border: 2px solid var(--lp-border);
  border-radius: 12px;
  padding: 18px 16px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.cel-tier-card:has(input:checked) { border-color: var(--lp-gold); }
.cel-tier-card input[type="radio"] { position: absolute; top: 16px; right: 16px; }
.cel-tier-name {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--lp-cream);
  margin-bottom: 2px;
}
.cel-tier-price {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--lp-gold-soft);
  margin-bottom: 10px;
}
.cel-tier-features {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--lp-body);
  line-height: 1.6;
}

.cel-error {
  color: #e0776e;
  font-size: 13px;
  margin: 8px 0 14px;
}
.cel-success-note {
  color: #7fd99a;
  font-size: 13px;
  margin: 8px 0 14px;
}
.cel-submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  background: var(--lp-gold);
  color: #1c1408;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  margin-top: 10px;
}
.cel-submit-btn:hover { background: var(--lp-gold-soft); }
.cel-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.cel-spinner {
  font-size: 32px;
  color: var(--lp-gold);
  animation: cel-spin 1.4s linear infinite;
  display: inline-block;
}
@keyframes cel-spin { to { transform: rotate(360deg); } }

.cel-link-box {
  display: flex;
  gap: 8px;
  margin: 0 auto 22px;
  max-width: 480px;
}
.cel-link-box input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  background: #0f1521;
  color: var(--lp-cream);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.cel-copy-btn {
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--lp-gold);
  background: none;
  color: var(--lp-gold-soft);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cel-copy-btn:hover { background: rgba(201,151,76,0.12); }

.cel-qr-code {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 22px;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

#cel-invite-section { text-align: left; margin-top: 30px; border-top: 1px solid var(--lp-border); padding-top: 10px; }
#cel-invite-numbers { width: 100%; box-sizing: border-box; resize: vertical; }

.cel-upsell-banner {
  margin-top: 34px;
  padding: 20px;
  border-radius: 12px;
  background: var(--lp-card-bg-soft);
  border: 1px solid var(--lp-border);
  text-align: left;
}
.cel-upsell-title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  color: var(--lp-cream);
  margin: 0 0 6px;
}
.cel-upsell-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--lp-gold-soft);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.cel-upsell-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .cel-card { padding: 30px 22px; }
  .cel-row { flex-direction: column; gap: 0; }
  .cel-tier-grid { grid-template-columns: 1fr; }
  .cel-title { font-size: 24px; }
}

/* ==================== Pre-payment summary ==================== */
.cel-summary-feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.cel-summary-feature-list li {
  font-size: 14px;
  color: var(--lp-body);
  padding-left: 24px;
  position: relative;
}
.cel-summary-feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #7fd99a;
  font-weight: 700;
}
.cel-summary-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
  margin-bottom: 22px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--lp-cream);
}
.cel-link-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--lp-muted);
  font-size: 13px;
  cursor: pointer;
  margin-top: 12px;
  text-decoration: underline;
}
.cel-link-btn:hover { color: var(--lp-cream); }
@media (max-width: 640px) {
  .cel-summary-feature-list { grid-template-columns: 1fr; }
}
