/* Account-first flow UI (sign-in, sign-up, Connect X, locked features).
   Ported from the TweetEraser design system; tokens mirror style.css /
   style_v4.css / account.css values. Loaded only by the new templates. */
:root {
  --te-brand: #1da1f2; --te-brand-hover: #222d32; --te-ink: #2e363f; --te-ink-hover: #3c434c;
  --te-ink-soft: #363f48; --te-ink-deep: #1f2730; --te-muted: #657281; --te-muted-2: #717a7f;
  --te-muted-icon: #8e8a8a; --te-black: #000; --te-surface: #fff; --te-surface-100: #eef1f6;
  --te-surface-tint: #ebf7ff; --te-border: #e1e5ef; --te-border-2: #e7ebef; --te-border-3: #e0e0e0;
  --te-border-4: #ced4da; --te-border-dark: #d5d9e0; --te-hairline-ink: rgba(46,54,63,.15);
  --te-hairline-white: rgba(255,255,255,.2); --te-success: #46d68c; --te-success-icon: #5cc083;
  --te-highlight: #fed136; --te-danger: #df1b41; --te-field-ink: #30313d; --te-field-border: #e0e6eb;
  --te-focus-ring: 0 0 0 3px rgba(29,161,242,.25); --te-focus-ring-danger: 0 0 0 3px rgba(223,27,65,.2);
  --te-shadow-card: 0 10px 30px 10px rgba(66,105,149,.05); --te-shadow-soft: 0 10px 30px rgba(0,0,0,.05);
  --te-shadow-feature: 0 10px 30px 10px rgba(66,105,149,.05); --te-shadow-field: 0 1px 2px rgba(0,0,0,.04);
  --te-font-sans: 'Source Sans Pro', sans-serif; --te-font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.te-auth *, .te-locked *, .te-connect-banner *, .te-unlock *, .te-result *, .te-xcard * { box-sizing: border-box; }
.te-auth ul, .te-perm ul, .te-auth-aside ul { list-style: none; margin: 0; padding: 0; }
.te-auth p, .te-auth h2, .te-locked p, .te-locked h3, .te-connect-banner p, .te-connect-banner h2, .te-unlock p, .te-unlock h3, .te-result p, .te-result h2, .te-xcard p, .te-xcard h4 { margin: 0; }
a.te-btn, a.te-btn:hover { text-decoration: none; }
.te-btn-google .te-ico { width: 18px; height: 18px; }
.te-auth-field .te-error, .te-form-errors { color: var(--te-danger); font-size: 14px; line-height: 20px; }
.te-form-errors { margin-top: 10px; }
.te-auth-page { padding: 40px 15px 80px; }
.te-auth-page .te-auth { max-width: 720px; margin: 0 auto; }
.te-acc button { background: none; border: 0; padding: 14px 0 0; font-weight: 700; color: var(--te-ink); cursor: pointer; font-size: 16px; }
.te-acc-body { color: var(--te-muted); font-size: 15px; line-height: 22px; padding-top: 8px; }
@keyframes te-spin { to { transform: rotate(360deg); } }
/* ---------- Buttons ---------- */
.te-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  border-radius: 4px; font-family: inherit; font-size: 16px; line-height: 24px; font-weight: 700; padding: 12px 24px;
  background: var(--te-brand); color: var(--te-surface); text-align: center; transition: background .3s, opacity .3s, filter .15s; white-space: nowrap; }
.te-btn:hover { background: var(--te-brand-hover); color: var(--te-surface); }
.te-btn.te-btn-md { font-weight: 500; line-height: 17px; padding: 15px 20px; }
/* .TD-blue-button */
.te-btn.te-btn-dark { background: var(--te-ink); font-weight: 600; font-size: 18px; line-height: 15px; padding: 18px 33px; }
/* .primary-button-login-homepage */
.te-btn.te-btn-dark:hover { background: var(--te-ink-hover); }
.te-btn.te-btn-outline { background: var(--te-surface); color: var(--te-brand); border: 2px solid var(--te-brand); font-size: 14px; padding: 12px 20px; }
/* .run-auto-deletion-btns button */
.te-btn.te-btn-outline:hover { background: var(--te-surface); color: var(--te-brand); }
.te-btn.te-btn-white { background: var(--te-surface); color: var(--te-brand); padding: 20px; font-weight: 500; line-height: 17px; }
/* hero on gradient */
.te-btn.te-btn-white:hover { background: var(--te-surface); opacity: .9; }
.te-btn.te-btn-x { background: var(--te-brand); font-size: 14px; font-weight: 500; line-height: normal; padding: 10px 15px; gap: 7px; }
/* .conn-to-twttr */
.te-btn.te-btn-x:hover { background: var(--te-brand); color: var(--te-surface); filter: contrast(115%); }
.te-btn.te-btn-block { display: flex; width: 100%; }
.te-btn.te-btn-pay { height: 45px; padding: 16px 24px; }
/* .btn-payment */
.te-btn.te-btn-pay:hover { background: var(--te-brand); filter: contrast(115%); }
.te-btn.te-btn-link { background: none; color: var(--te-brand); padding: 0; font-weight: 600; }
.te-btn.te-btn-link:hover { background: none; text-decoration: underline; color: var(--te-brand); }
.te-btn:disabled, .te-btn.te-disabled { opacity: .65; pointer-events: none; }
.te-btn .te-ico { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.te-btn-google { background: var(--te-surface); color: var(--te-ink); border: 1px solid var(--te-border-3); font-weight: 600; }
.te-btn-google:hover { background: var(--te-surface-100); color: var(--te-ink); }
/* ---------- Chips ---------- */
.te-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; font-size: 12px; line-height: 15px; font-weight: 400; white-space: nowrap; }
.te-chip-active { background: var(--te-success); color: var(--te-ink); font-size: 14px; }
/* .status-active */
.te-chip-neutral { background: var(--te-muted); color: var(--te-surface-100); }
/* .chip */
.te-chip-plan { background: var(--te-ink-soft); color: var(--te-surface-100); border-radius: 6px; padding: 4px 6px; }
/* .tw-current-plan */
.te-chip-save { background: var(--te-highlight); color: var(--te-black); border-radius: 3px; padding: 2px 4px; font-size: 14px; line-height: 18px; font-weight: 600; }
/* .save-25-badge */
.te-chip-popular { background: var(--te-ink); color: var(--te-surface); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; height: 30px; padding: 0 10px; justify-content: center; border-radius: 0; }
.te-chip-x { background: var(--te-surface-100); color: var(--te-ink); }
/* ---------- Cards ---------- */
.te-card { background: var(--te-surface); border-radius: 10px; box-shadow: var(--te-shadow-card); }
/* .account-setting-itms */
.te-card-head { padding: 30px; border-bottom: 1px solid var(--te-border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.te-card-head h4 { font-size: 16px; line-height: 20px; font-weight: 700; color: var(--te-ink); }
.te-card-body { padding: 30px; }
.te-card-outline { border-radius: 6px; border: 1px solid var(--te-border-4); background: var(--te-surface); box-shadow: none; }
/* .connect-to-twitter */
.te-note { border-radius: 10px; background: var(--te-surface-tint); padding: 20px 25px; color: var(--te-ink); font-size: 16px; line-height: 24px; }
/* .deletion-premium-plan */
.te-note a { text-decoration: underline; }
/* Dashboard box (.deletion-main-box) */
.te-box { border: 1px solid var(--te-border-dark); background: var(--te-surface); }
.te-box-head { background: var(--te-ink); padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.te-box-head strong, .te-box-head .te-box-title { color: var(--te-surface); font-size: 20px; line-height: 34px; font-weight: 400; }
.te-box-head .te-box-title strong { font-weight: 700; }
.te-box-status { color: var(--te-surface); font-size: 16px; line-height: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.te-box-body { display: flex; flex-flow: column; gap: 30px; padding: 30px 40px; }
.te-list { border-radius: 10px; border: 1px solid var(--te-border-2); background: var(--te-surface); padding: 20px 25px; display: flex; flex-flow: column; gap: 15px; }
/* .deletion-history-list ul */
.te-list li { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--te-border-2); padding-bottom: 15px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--te-ink); }
.te-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.te-list li span { font-weight: 400; color: var(--te-muted-2); text-align: right; }
/* ---------- Checkout (.plan-switch, PaymentKit fields) ---------- */
.te-field label { display: block; font-size: 16px; font-weight: 400; color: var(--te-field-ink); margin-bottom: 8px; }
.te-field input, .te-field select, .te-field .te-input { width: 100%; height: 52px; padding: 14px; border-radius: 6px; background: var(--te-surface-100); border: 1px solid var(--te-field-border);
  box-shadow: var(--te-shadow-field); font-family: var(--te-font-system); font-size: 16px; color: var(--te-field-ink); outline: none; }
.te-field input:focus, .te-field select:focus, .te-field .te-input:focus-within { border-color: var(--te-brand); box-shadow: var(--te-focus-ring); }
.te-field.te-invalid input { border-color: var(--te-danger); box-shadow: var(--te-focus-ring-danger); }
.te-field .te-error { color: var(--te-danger); font-size: 14px; margin-top: 4px; }
.te-field input::placeholder { color: var(--te-muted-icon); }
.te-auth-field input { height: 48px; padding: 15px; color: var(--te-black); border-radius: 5px; border: 1px solid var(--te-border); background: var(--te-surface); font-family: var(--te-font-sans); font-size: 16px; width: 100%; outline: none; }
/* .auth-login-form-group input */
.te-auth-field input:focus { border-color: var(--te-brand); }
.te-separator { display: flex; align-items: center; text-align: center; color: #8e8a8a; padding-top: 25px; font-size: 14px; }
.te-separator::before, .te-separator::after { content: ''; flex: 1; border-bottom: 1px solid #ccc; }
.te-separator:not(:empty)::before { margin-right: .5em; }
.te-separator:not(:empty)::after { margin-left: .5em; }
.te-side-user { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; }
.te-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--te-surface); color: var(--te-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; overflow: hidden; flex: 0 0 60px; }
.te-avatar img { width: 100%; height: 100%; object-fit: cover; }
.te-side-user h5 { color: var(--te-surface); font-size: 18px; font-weight: 600; line-height: 1.2; word-break: break-word; }
.te-side-user h5 span { display: block; font-size: 14px; font-weight: 400; }
.te-side-plan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--te-surface-100); }
.te-page-title { font-size: 30px; line-height: 38px; font-weight: 700; color: var(--te-ink); border-bottom: 1px solid var(--te-hairline-ink); padding-bottom: 20px; margin-bottom: 80px; }
/* ---------- Connect X states ---------- */
.te-connect-banner { background: var(--te-surface); border-radius: 10px; box-shadow: var(--te-shadow-card); padding: 30px; display: grid; grid-template-columns: 1fr auto; gap: 24px 30px; align-items: center; }
.te-connect-banner h2 { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--te-ink); margin-bottom: 8px; }
.te-connect-banner p { color: var(--te-muted); font-size: 16px; line-height: 24px; }
.te-connect-banner .te-status-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; color: var(--te-muted); font-size: 14px; }
.te-unlock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.te-unlock { background: var(--te-surface); border-radius: 10px; box-shadow: var(--te-shadow-feature); padding: 25px; display: flex; flex-flow: column; gap: 12px; }
.te-unlock .te-unlock-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--te-ink); display: flex; align-items: center; justify-content: center; }
.te-unlock .te-unlock-ico svg { width: 20px; height: 20px; fill: var(--te-surface); }
.te-unlock h3 { font-size: 18px; line-height: 23px; font-weight: 700; color: var(--te-ink); }
.te-unlock p { font-size: 14px; line-height: 20px; color: var(--te-muted); }
.te-locked { background: var(--te-surface); border-radius: 10px; box-shadow: var(--te-shadow-card); padding: 40px; text-align: center; display: flex; flex-flow: column; align-items: center; gap: 14px; }
.te-locked .te-lock-disc { width: 60px; height: 60px; border-radius: 50%; background: var(--te-surface-100); display: flex; align-items: center; justify-content: center; }
.te-locked .te-lock-disc svg { width: 26px; height: 26px; stroke: var(--te-ink); fill: none; }
.te-locked h3 { font-size: 20px; line-height: 25px; font-weight: 700; color: var(--te-ink); }
.te-locked p { font-size: 16px; line-height: 24px; color: var(--te-muted); max-width: 520px; }
.te-locked .te-locked-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--te-muted); }
.te-locked-inline { display: flex; align-items: center; gap: 15px; padding: 15px 20px; border-radius: 10px; border: 1px dashed var(--te-border-4); color: var(--te-muted); font-size: 14px; line-height: 20px; }
.te-locked-inline svg { width: 18px; height: 18px; stroke: var(--te-muted); fill: none; flex: 0 0 18px; }
.te-locked-inline .te-btn { margin-left: auto; }
.te-dim { opacity: .5; pointer-events: none; filter: grayscale(.2); }
/* ---------- Auth card (.TD-eraser-auth-bg) ---------- */
.te-auth { background: var(--te-surface); box-shadow: var(--te-shadow-soft); border-radius: 30px; border: 2px solid var(--te-border-3); padding: 40px; }
.te-auth h2 { font-size: 32px; line-height: 42px; font-weight: 700; color: var(--te-ink); }
.te-auth .te-auth-sub { color: var(--te-muted); font-size: 18px; line-height: 27px; margin-top: 8px; }
.te-auth form { display: flex; flex-flow: column; gap: 15px; margin-top: 30px; }
.te-auth .te-fine { font-size: 14px; line-height: 20px; color: var(--te-muted); }
.te-auth .te-fine a { text-decoration: underline; }
/* ---------- Result pages (.success-content) ---------- */
.te-result { text-align: center; max-width: 560px; margin: 0 auto; display: flex; flex-flow: column; align-items: center; gap: 0; }
.te-result h2 { font-size: 40px; line-height: 50px; font-weight: 700; color: var(--te-ink); margin: 40px 0 20px; }
.te-result p { font-size: 16px; line-height: 24px; color: var(--te-muted); }
.te-result .te-btn { margin-top: 30px; font-weight: 600; }
.te-eyebrow { font-size: 18px; line-height: 23px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--te-ink); }
@media (max-width: 980px) {
  .te-unlock-grid { grid-template-columns: 1fr 1fr; }
  .te-connect-banner { grid-template-columns: 1fr; }
  .te-two-col { grid-template-columns: 1fr !important; gap: 30px !important; }
}
@media (max-width: 767px) {
  .te-side-user { margin-bottom: 20px; border-bottom: 1px solid var(--te-hairline-white); padding-bottom: 20px; }
  .te-side-user h5 { font-size: 14px; }
  .te-side-user h5 span { font-size: 12px; }
  .te-page-title { margin-bottom: 40px; }
  .te-unlock-grid { grid-template-columns: 1fr; }
  .te-box-head, .te-box-body { padding-left: 20px; padding-right: 20px; }
  .te-auth { padding: 25px; border-radius: 30px; }
  .te-auth h2 { font-size: 30px; line-height: 40px; text-align: center; }
  .te-result h2 { font-size: 30px; line-height: 38px; }
}
.te-two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; align-items: start; }
.te-two-col.te-even { grid-template-columns: 1fr 1fr; }
.te-stack { display: flex; flex-flow: column; gap: 30px; }
.te-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.te-muted { color: var(--te-muted); }
.te-small { font-size: 14px; line-height: 20px; }
.te-alert { background: #cce5ff; color: #004085; border: 1px solid #b8daff; border-radius: 4px; padding: 12px 20px; font-size: 16px; line-height: 24px; margin-bottom: 30px; display: flex; justify-content: space-between; gap: 10px; }
.te-alert button { border: 0; background: none; font-size: 20px; line-height: 1; color: inherit; cursor: pointer; opacity: .6; }
.te-spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--te-border-3); border-top-color: var(--te-brand); animation: te-spin .8s linear infinite; }
.te-spin.te-spin-lg { width: 48px; height: 48px; border-width: 4px; }
.te-auth-grid { display: grid; grid-template-columns: 1.1fr 1px .9fr; gap: 50px; align-items: start; }
.te-auth-grid .te-vrule { background: var(--te-border); align-self: stretch; }
.te-auth-aside { display: flex; flex-flow: column; gap: 18px; }
.te-auth-aside .te-site { font-size: 24px; line-height: 32px; color: var(--te-muted); }
.te-auth-aside ul { display: flex; flex-flow: column; gap: 10px; }
.te-auth-aside li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; color: var(--te-ink); }
.te-auth-aside li svg { flex: 0 0 16px; margin-top: 3px; }
.te-perm { margin-top: 30px; }
.te-perm h3 { font-size: 20px; line-height: 25px; font-weight: 700; color: var(--te-success-icon); margin-bottom: 12px; }
.te-perm li { font-size: 14px; line-height: 22px; color: var(--te-muted); padding-left: 18px; position: relative; }
.te-perm li::before { content: '•'; position: absolute; left: 4px; color: var(--te-ink); }
.te-xcard { background: var(--te-surface); border-radius: 10px; box-shadow: var(--te-shadow-card); padding: 30px; }
.te-xprofile { display: flex; align-items: center; gap: 20px; padding: 30px 0; }
.te-xprofile .te-xavatar { width: 100px; height: 100px; border-radius: 50%; background: var(--te-surface-100); display: flex; align-items: center; justify-content: center; flex: 0 0 100px; }
.te-xprofile .te-xavatar svg { width: 40px; height: 40px; }
.te-xprofile h4 { font-size: 24px; line-height: 30px; font-weight: 400; color: var(--te-black); }
.te-xprofile p { font-size: 18px; line-height: 21px; color: var(--te-muted); }
.te-acc { margin-top: 22px; border-top: 1px solid var(--te-hairline-ink); border-bottom: 1px solid var(--te-hairline-ink); }
.te-acc button { width: 100%; text-align: left; background: none; border: 0; padding: 16px 0; font: inherit; font-size: 14px; color: var(--te-ink); display: flex; justify-content: space-between; cursor: pointer; }
.te-acc .te-acc-body { color: var(--te-muted); font-size: 14px; line-height: 24px; padding: 0 0 16px; }
.te-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.te-icon-x { width: 18px; height: 18px; fill: var(--te-surface); }
.te-lock-mark { width: 16px; height: 16px; stroke: var(--te-surface-100); fill: none; opacity: .75; }
/* ---------- Plan picker (variant 1c) ---------- */
.te-pick-plan { max-width: 900px; margin: 0 auto; padding: 60px 20px 80px; }
.te-pick-plan h2 { font-size: 40px; line-height: 50px; font-weight: 700; color: var(--te-ink); margin: 0 0 10px; }
.te-pick-plan .te-auth-sub { color: var(--te-muted); font-size: 18px; line-height: 27px; margin-bottom: 30px; }
.te-billing-toggle { display: inline-flex; background: var(--te-surface-100); border-radius: 8px; padding: 4px; gap: 4px; margin-bottom: 36px; }
.te-toggle-btn { border: none; background: none; padding: 10px 22px; border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--te-muted); cursor: pointer; transition: background .2s, color .2s; display: flex; align-items: center; gap: 8px; }
.te-toggle-btn.active { background: var(--te-surface); color: var(--te-ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.te-badge { background: var(--te-highlight); color: var(--te-black); border-radius: 3px; padding: 2px 6px; font-size: 12px; font-weight: 700; }
.te-plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.te-plan-card { background: var(--te-surface); border: 2px solid var(--te-border); border-radius: 16px; padding: 30px 24px; display: flex; flex-flow: column; gap: 12px; position: relative; transition: box-shadow .2s, border-color .2s; }
.te-plan-card:hover { box-shadow: var(--te-shadow-card); border-color: var(--te-brand); }
.te-plan-card--popular { border-color: var(--te-brand); box-shadow: var(--te-shadow-card); }
.te-popular-label { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--te-brand); color: var(--te-surface); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.te-plan-name { font-size: 20px; font-weight: 700; color: var(--te-ink); margin-top: 10px; }
.te-plan-price { display: flex; align-items: baseline; gap: 4px; }
.te-price-amount { font-size: 36px; font-weight: 700; color: var(--te-ink); line-height: 1; }
.te-price-period { font-size: 15px; color: var(--te-muted); }
.te-plan-billing { font-size: 13px; color: var(--te-muted); }
.te-btn.te-btn-primary { background: var(--te-brand); color: var(--te-surface); }
.te-btn.te-btn-primary:hover { background: var(--te-brand-hover); }
.te-pick-plan .te-fine { font-size: 14px; color: var(--te-muted); }
.te-pick-plan .te-fine a { text-decoration: underline; color: var(--te-brand); }
@media (max-width: 767px) {
  .te-pick-plan { padding: 30px 15px 60px; }
  .te-pick-plan h2 { font-size: 28px; line-height: 36px; }
  .te-plan-cards { grid-template-columns: 1fr; }
}
/* ---------- Price hint on signup page ---------- */
.te-price-hint { font-size: 15px; color: var(--te-muted); margin-top: 6px; }
.te-unlock-grid { grid-template-columns: 1fr 1fr; }
.te-connect-banner { grid-template-columns: 1fr; }
.te-two-col, .te-two-col.te-even { grid-template-columns: 1fr; gap: 30px; }
.te-auth-grid { grid-template-columns: 1fr; gap: 30px; }
.te-auth-grid .te-vrule { display: none; }
.te-grid-2 { grid-template-columns: 1fr; }
.te-side-user { margin-bottom: 20px; border-bottom: 1px solid var(--te-hairline-white); padding-bottom: 20px; }
.te-side-user h5 { font-size: 14px; }
.te-side-user h5 span { font-size: 12px; }
.te-page-title { margin-bottom: 40px; }
.te-unlock-grid { grid-template-columns: 1fr; }
.te-box-head, .te-box-body { padding-left: 20px; padding-right: 20px; }
.te-auth { padding: 25px; }
.te-auth h2 { font-size: 30px; line-height: 40px; }
.te-result h2 { font-size: 30px; line-height: 38px; }
.te-locked { padding: 30px 20px; }
.te-page-title { font-size: 26px; }
.te-locked-inline { flex-wrap: wrap; }
.te-locked-inline .te-btn { margin-left: 0; width: 100%; }

/* ==========================================================================
   Slim nav — used on signup (1a) and pick-plan (1c) pages
   ========================================================================== */
.te-slim-nav { background: var(--te-surface); border-bottom: 1px solid var(--te-border-2); }
.te-slim-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 60px; gap: 24px; }
.te-slim-nav-logo img { height: 36px; display: block; }
.te-slim-nav-links { display: flex; align-items: center; gap: 28px; }
.te-slim-nav-links a { font-size: 17px; font-weight: 600; color: var(--te-ink); text-decoration: none; }
.te-slim-nav-links a:hover { color: var(--te-brand); }
.te-slim-nav-cta { background: var(--te-ink); color: var(--te-surface); font-size: 16px; font-weight: 600; padding: 11px 22px; border-radius: 4px; text-decoration: none; white-space: nowrap; transition: background .2s; }
.te-slim-nav-cta:hover { background: var(--te-ink-hover); color: var(--te-surface); text-decoration: none; }
@media (max-width: 820px) {
  .te-slim-nav-inner { padding: 14px 20px; }
  .te-slim-nav-links { gap: 16px; }
  .te-slim-nav-links a { font-size: 14px; }
  .te-slim-nav-cta { display: none; }
}
@media (max-width: 560px) {
  .te-slim-nav-links { display: none; }
}

/* ==========================================================================
   Variant 1a — Split-column signup (desktop) / Stacked (mobile 2a)
   ========================================================================== */
.te-auth-page-1a { padding: 40px 20px 80px; }
.te-auth-1a { max-width: 1140px; margin: 0 auto; background: var(--te-surface); border: 2px solid var(--te-border); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 0; }
.te-auth-1a * { box-sizing: border-box; }
.te-auth-1a-header { margin-bottom: 28px; }
.te-auth-1a-header h2 { font-size: 36px; line-height: 44px; font-weight: 700; color: var(--te-ink); margin: 0 0 8px; }
.te-auth-1a-header .te-auth-sub { font-size: 18px; line-height: 27px; color: var(--te-muted); margin: 0; }
.te-auth-section-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--te-muted); }
/* Desktop 3-col grid */
.te-auth-1a-grid { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 36px; align-items: start; }
.te-auth-1a-col { display: flex; flex-direction: column; gap: 16px; }
/* OR divider (vertical on desktop, horizontal on mobile) */
.te-auth-1a-or-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.te-auth-1a-rule { flex: 1; width: 1px; background: var(--te-border); min-height: 20px; }
.te-auth-1a-or-label { font-size: 15px; color: var(--te-muted); font-weight: 600; white-space: nowrap; }
/* Buttons */
.te-btn-1a-x { font-size: 18px; height: 56px; gap: 12px; }
.te-btn-1a-social { font-size: 18px; height: 56px; gap: 12px; }
.te-btn-1a-submit { background: var(--te-brand); font-size: 18px; font-weight: 700; height: 56px; }
.te-btn-1a-submit:hover { background: var(--te-brand-hover); }
/* Bullet list */
.te-auth-1a-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 24px; color: var(--te-ink); }
.te-auth-1a-bullets li { display: flex; align-items: flex-start; gap: 10px; }
.te-auth-1a-bullets li svg { flex: 0 0 18px; margin-top: 3px; }
/* Email sub-form */
.te-auth-1a-email-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.te-auth-1a-email-form .te-auth-field { margin: 0; }
.te-auth-1a-email-form .te-auth-field input { height: 52px; font-size: 17px; }
/* "or with email" separator */
.te-auth-1a-sep { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--te-muted); }
.te-auth-1a-sep::before, .te-auth-1a-sep::after { content: ''; flex: 1; height: 1px; background: var(--te-border); }
/* Footer */
.te-auth-1a-footer { border-top: 1px solid var(--te-border); padding-top: 22px; margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.te-auth-1a-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; color: var(--te-muted); }
.te-auth-1a-footer-row strong { color: var(--te-ink); }
.te-auth-1a-footer .te-fine { font-size: 14px; color: var(--te-muted); margin: 0; }
.te-auth-1a-footer .te-fine a { text-decoration: underline; color: var(--te-muted); }

/* Mobile 2a — stacked layout */
@media (max-width: 820px) {
  .te-auth-page-1a { padding: 20px 15px 60px; }
  .te-auth-1a { padding: 28px 20px 32px; border-radius: 28px; gap: 22px; }
  .te-auth-1a-header h2 { font-size: 28px; line-height: 36px; }
  .te-auth-1a-header .te-auth-sub { font-size: 16px; line-height: 24px; }
  .te-auth-1a-grid { grid-template-columns: 1fr; gap: 22px; }
  .te-auth-1a-or-wrap { flex-direction: row; }
  .te-auth-1a-rule { flex: 1; width: auto; height: 1px; min-height: 0; }
  .te-auth-1a-footer-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ==========================================================================
   Variant 1c — Plan-first combined page (desktop) / Stacked (mobile 2b)
   ========================================================================== */
.te-pick-plan-1c { max-width: 1140px; margin: 0 auto; padding: 40px 20px 80px; display: flex; flex-direction: column; gap: 30px; }
.te-pick-plan-1c * { box-sizing: border-box; }
/* Step breadcrumb */
.te-step-bar { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--te-muted); flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; }
.te-step-bar::-webkit-scrollbar { display: none; }
@media (max-width: 820px) {
  .te-step-bar { font-size: 12px; gap: 4px; }
}
.te-step-arrow { color: var(--te-border-dark); }
.te-step--active { color: var(--te-brand); }
.te-step--current { color: var(--te-ink); }
/* Plan section */
.te-plan-picker-section { display: flex; flex-direction: column; gap: 16px; }
.te-plan-picker-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.te-plan-picker-header h2 { font-size: 36px; font-weight: 700; color: var(--te-ink); margin: 0; }
/* Billing toggle pill */
.te-billing-pill { display: inline-flex; background: var(--te-surface-100); border-radius: 100px; padding: 4px; }
.te-pill-btn { border: none; background: none; padding: 8px 18px; border-radius: 100px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--te-muted); transition: background .2s, color .2s; font-family: inherit; }
.te-pill-btn.active { background: var(--te-surface); box-shadow: 0 1px 4px rgba(0,0,0,.1); color: var(--te-ink); }
.te-save-badge { color: var(--te-success); font-size: 14px; }
/* Plan cards grid */
.te-plan-cards-1c { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.te-plan-card-1c { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 2px solid var(--te-border); background: var(--te-surface); border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; user-select: none; }
.te-plan-card-1c:hover { border-color: var(--te-brand); }
.te-plan-card-1c.selected { border-color: var(--te-brand); background: var(--te-surface-tint); }
.te-card-1c-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.te-card-1c-name { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.te-plan-badge { font-size: 11px; font-weight: 700; background: var(--te-highlight); color: var(--te-black); padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.te-card-1c-price { display: flex; align-items: baseline; gap: 2px; }
.te-card-1c-amount { font-size: 30px; font-weight: 700; color: var(--te-ink); }
.te-card-1c-period { font-size: 15px; color: var(--te-muted); }
.te-card-1c-bullet { font-size: 14px; color: var(--te-muted); line-height: 20px; }
/* Signup section */
.te-1c-signup { border-top: 1px solid var(--te-border); padding-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.te-1c-signup-title { font-size: 24px; font-weight: 700; color: var(--te-ink); }
.te-1c-signup-sub { font-size: 16px; color: var(--te-muted); line-height: 24px; margin-top: 4px; }
.te-1c-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.te-btn-1c-social { height: 56px; font-size: 18px; gap: 12px; }
/* "or with email" separator */
.te-1c-sep { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--te-muted); }
.te-1c-sep::before, .te-1c-sep::after { content: ''; flex: 1; height: 1px; background: var(--te-border); }
/* Inline email row (3-col on desktop) */
.te-1c-email-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 12px; align-items: start; margin: 0; }
.te-1c-email-row .te-auth-field { margin: 0; }
.te-1c-email-row .te-auth-field input { height: 56px; font-size: 17px; }
.te-1c-submit-wrap { display: flex; align-items: flex-start; }
.te-btn-1c-pay { background: var(--te-brand); color: var(--te-surface); height: 56px; font-size: 17px; font-weight: 700; padding: 0 24px; white-space: nowrap; border-radius: 4px; }
.te-btn-1c-pay:hover { background: var(--te-brand-hover); color: var(--te-surface); }
.te-1c-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--te-muted); }
.te-1c-footer a { color: var(--te-brand); text-decoration: underline; }

/* ==========================================================================
   Payment page — "Connect X first" banner
   ========================================================================== */
.te-x-check-banner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--te-surface-tint); border: 1px solid var(--te-brand);
  border-radius: 10px; padding: 16px 22px; margin-bottom: 24px;
}
.te-x-check-banner__body { flex: 1; min-width: 180px; }
.te-x-check-banner__title { display: block; font-size: 15px; font-weight: 700; color: var(--te-ink); margin-bottom: 3px; }
.te-x-check-banner__desc { font-size: 13px; color: var(--te-muted); line-height: 19px; margin: 0; }
.te-x-check-banner__action { flex-shrink: 0; }
.te-btn-x-check { background: var(--te-ink); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 18px; gap: 8px; border-radius: 6px; }
.te-btn-x-check:hover { background: var(--te-ink-hover); color: #fff; }
@media (max-width: 640px) {
  .te-x-check-banner__action { width: 100%; }
  .te-btn-x-check { width: 100%; justify-content: center; }
}

/* Mobile 2b — stacked plan cards + stacked signup */
@media (max-width: 820px) {
  .te-pick-plan-1c { padding: 28px 15px 60px; gap: 22px; }
  .te-plan-picker-header { flex-direction: column; align-items: flex-start; }
  .te-plan-picker-header h2 { font-size: 28px; line-height: 36px; }
  .te-plan-cards-1c { grid-template-columns: 1fr; }
  .te-1c-social-grid { grid-template-columns: 1fr; }
  .te-1c-email-row { grid-template-columns: 1fr; }
  .te-btn-1c-pay { width: 100%; }
  .te-1c-footer { flex-direction: column; gap: 6px; }
}
