/* Pop-up checkout in 2 pasi: 1) date contact -> Klaviyo, 2) plata Stripe embedded.
   Tema deschisa implicit; .tbm--dark pentru lp-1003. */

.tbm-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 14, 18, 0.62);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.tbm-overlay.tbm-open { opacity: 1; pointer-events: auto; }

.tbm-card {
  width: 100%; max-width: 460px; max-height: calc(100vh - 32px);
  overflow-y: auto; border-radius: 16px; position: relative;
  background: #fff; color: #14181d;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.18s ease;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tbm-overlay.tbm-open .tbm-card { transform: none; }

.tbm-bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 8px; background: #fff;
  border-radius: 16px 16px 0 0;
}
.tbm-back, .tbm-close {
  flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(20, 24, 29, 0.06); color: inherit;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.tbm-back:hover, .tbm-close:hover { background: rgba(20, 24, 29, 0.12); }
.tbm-back[hidden] { display: none; }

.tbm-steps {
  flex: 1; display: flex; gap: 6px; padding: 0 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.tbm-step { flex: 1; text-align: center; opacity: 0.45; }
.tbm-step::before {
  content: ""; display: block; height: 4px; border-radius: 2px;
  background: currentColor; opacity: 0.25; margin-bottom: 6px;
}
.tbm-step.tbm-active { opacity: 1; color: #1e9e6a; }
.tbm-step.tbm-active::before { opacity: 1; background: #2ecc8f; }

.tbm-body { padding: 18px 24px 24px; }
.tbm-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.tbm-sub { font-size: 14px; opacity: 0.75; margin: 0 0 16px; line-height: 1.5; }

.tbm-field { margin-bottom: 12px; }
.tbm-input {
  width: 100%; box-sizing: border-box; padding: 13px 14px;
  font: inherit; font-size: 15px; color: inherit;
  background: #fff; border: 1.5px solid #d8d6d2; border-radius: 10px;
  outline: none; transition: border-color 0.12s ease;
}
.tbm-input:focus { border-color: #2ecc8f; }
.tbm-input.tbm-invalid { border-color: #e05252; }
.tbm-error { display: none; color: #e05252; font-size: 13px; margin-top: 10px; }
.tbm-error.tbm-show { display: block; }

.tbm-btn {
  width: 100%; border: 0; cursor: pointer; margin-top: 4px;
  padding: 15px 18px; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 800; color: #0b1310;
  background: #2ecc8f;
  transition: transform 0.08s ease, filter 0.12s ease;
}
.tbm-btn:hover { filter: brightness(1.05); }
.tbm-btn:active { transform: scale(0.99); }
.tbm-btn[disabled] { opacity: 0.6; cursor: wait; }

.tbm-note { font-size: 12px; opacity: 0.6; text-align: center; margin: 10px 0 0; }

/* Rezumatul ofertei la pasul de plata */
.tbm-offer { border: 1px solid rgba(20, 24, 29, 0.12); background: rgba(14, 159, 110, 0.06);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; text-align: center; }
.tbm-offer__what { font-size: 12.5px; line-height: 1.45; opacity: 0.85; }
.tbm-offer__bonus { font-size: 12.5px; line-height: 1.45; margin-top: 3px; font-weight: 600; color: #0e9f6e; }
.tbm--dark .tbm-offer__bonus { color: #1ad98b; }
.tbm-offer__price { font-size: 13px; line-height: 1.45; margin-top: 3px; }
.tbm-offer__price s { opacity: 0.55; }
.tbm-offer__price b { color: #0e9f6e; }
.tbm--dark .tbm-offer { border-color: rgba(240, 242, 244, 0.14); background: rgba(26, 217, 139, 0.08); }
.tbm--dark .tbm-offer__price b { color: #1ad98b; }
/* Pasul 2 (RO): cele trei randuri de contex langa card + termenul real (13:10). */
.tbm-why { font-size: 12.5px; line-height: 1.5; margin: 0 2px 12px; opacity: 0.88; }
.tbm-why > div { position: relative; padding-left: 14px; margin-top: 4px; }
.tbm-why > div::before { content: '·'; position: absolute; left: 2px; top: 0; font-weight: 900; color: #0e9f6e; }
.tbm-why b { color: #14181d; }
.tbm-why__when { margin-top: 8px; padding: 7px 10px 7px 12px; border-radius: 8px; background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45); }
.tbm-why > .tbm-why__when { padding-left: 12px; }
.tbm-why > .tbm-why__when::before { content: none; }
.tbm--dark .tbm-why b { color: #f0f2f4; }
.tbm-price { font-size: 13px; text-align: center; margin: 12px 0 0; opacity: 0.85; }
.tbm-price s { opacity: 0.6; }
.tbm-ron { opacity: 0.7; }
/* Reinnoirea, spusa clar inainte de ecranul Stripe. */
.tbm-renew { font-size: 12px; line-height: 1.5; text-align: center; margin: 6px 0 0; opacity: 0.72; }
.tbm-renew strong { opacity: 1; font-weight: 700; }

.tbm-payment { min-height: 320px; }
/* indicatorul pentru bump-ul din formularul Stripe (cursul mindset) */
.tbm-bump { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.5;
  background: #fff7dc; border: 1px solid #f1dc94; color: #4a3b00; }
.tbm-bump b { color: #14181d; }
.tbm-bump s { opacity: .6; }
.tbm-spinner {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; font-size: 14px; opacity: 0.7;
}

/* ── Tema inchisa (lp-1003) ─────────────────────────────────────────────── */
.tbm--dark .tbm-card { background: #14181d; color: #eef2f0; }
.tbm--dark .tbm-bar { background: #14181d; }
.tbm--dark .tbm-back, .tbm--dark .tbm-close { background: rgba(255, 255, 255, 0.08); }
.tbm--dark .tbm-back:hover, .tbm--dark .tbm-close:hover { background: rgba(255, 255, 255, 0.16); }
.tbm--dark .tbm-input { background: #0e1114; border-color: #333a41; color: #eef2f0; }
.tbm--dark .tbm-input:focus { border-color: #2fd695; }
.tbm--dark .tbm-step.tbm-active { color: #2fd695; }
.tbm--dark .tbm-step.tbm-active::before { background: #2fd695; }
.tbm--dark .tbm-btn { background: #2fd695; }

@media (max-width: 520px) {
  /* centrat vertical, nu bottom-sheet: campul de email pica sub degetul
     mare si nu sub tastatura (cerinta Flavius, 18 aug) */
  .tbm-overlay { padding: 0 10px; align-items: center; }
  .tbm-card { max-width: none; max-height: 92vh; border-radius: 16px; }
}

/* Sugestia de corectie a emailului (typo de domeniu) */
.tbm-suggest { display: block; width: 100%; margin-top: 8px; padding: 10px 12px;
  font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer;
  color: #0e9f6e; background: rgba(14, 159, 110, 0.08);
  border: 1px dashed rgba(14, 159, 110, 0.5); border-radius: 8px; }
.tbm-suggest[hidden] { display: none; }
.tbm--dark .tbm-suggest { color: #1ad98b; background: rgba(26, 217, 139, 0.1); border-color: rgba(26, 217, 139, 0.4); }
