/* ============================================================
   txp-base.css — shared styles for all auth/register pages
   ============================================================ */

.txp-auth-body, .txp-auth-body *, .txp-auth-body *::before, .txp-auth-body *::after,
#txp-auth-modal, #txp-auth-modal *, #txp-auth-modal *::before, #txp-auth-modal *::after {
  box-sizing: border-box;
}

.txp-auth-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #F4F2EF;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
  color: #1A1A2E;
  font-size: 14px;
}
.txp-auth-body input,
.txp-auth-body textarea,
.txp-auth-body select,
.txp-auth-body button,
.txp-auth-body a,
.txp-auth-body p,
.txp-auth-body label {
  font-family: inherit !important;
}
.txp-auth-body .txp-field input[type="text"],
.txp-auth-body .txp-field input[type="email"],
.txp-auth-body .txp-field input[type="password"],
.txp-auth-body .txp-field input[type="tel"],
.txp-auth-body .txp-phone-input {
  font-size: 13px !important;
  padding: 10px 12px !important;
}
.txp-auth-body .txp-btn-primary { font-size: 14px !important; }
.txp-auth-body .txp-btn-social { font-size: 13px !important; }
.txp-auth-body .txp-card-title { font-size: 18px !important; }
.txp-auth-body .txp-step-title { font-size: 17px !important; }

#txp-payment-element {
  min-height: 180px;
  margin: 8px 0 4px;
}

.txp-auth-wrap { width: 100%; max-width: 420px; }
.txp-auth-wrap--wide { max-width: 860px; }
.txp-auth-wrap--narrow { max-width: 400px; }

/* ── LOGO ── */
.txp-logo { text-align: center; margin-bottom: 16px; }
.txp-logo a { display: inline-block; line-height: 0; }
.txp-logo img { max-width: 148px; height: auto; }

/* ── CARD ── */
.txp-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E4E0DA;
  padding: 28px 24px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.txp-card-title {
  font-size: 18px; font-weight: 700;
  color: #1A1A2E; margin-bottom: 4px;
  text-align: center;
}
.txp-card-sub {
  font-size: 13px; color: #666;
  text-align: center; margin-bottom: 20px; line-height: 1.5;
}
.txp-card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: #F5F0FF;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.txp-card-icon svg { width: 28px; height: 28px; color: #7C3AED; }

/* ── PROGRESS BAR (wizard) ── */
.txp-prog-track { height: 3px; background: #F0EDE8; }
.txp-prog-fill { height: 100%; background: #7C3AED; transition: width 0.35s ease; }

/* ── WIZARD HEADER ── */
.txp-wiz-header {
  padding: 14px 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 40px;
}
.txp-btn-back {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; font-size: 13px; color: #888;
  cursor: pointer; padding: 0; transition: color 0.15s; font-family: inherit;
}
.txp-btn-back:hover { color: #1A1A2E; }
.txp-btn-back svg { width: 15px; height: 15px; flex-shrink: 0; }
.txp-step-counter { font-size: 12px; color: #AAAAAA; margin-left: auto; }

/* ── STEP BODY ── */
.txp-step-body { padding: 20px 20px 24px; display: none; }
.txp-step-body.active { display: block; }
.txp-step-label {
  font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: #7C3AED; margin-bottom: 8px;
}
.txp-step-title { font-size: 17px; font-weight: 600; color: #1A1A2E; margin-bottom: 4px; line-height: 1.25; }
.txp-step-sub { font-size: 13px; color: #666; margin-bottom: 16px; line-height: 1.5; }

/* ── FIELD ── */
.txp-field { margin-bottom: 14px; }
.txp-field label {
  display: block; font-size: 12px; font-weight: 500;
  color: #555; margin-bottom: 5px;
}
.txp-field-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px;
}
.txp-field-link { font-size: 12px; color: #7C3AED; text-decoration: none; cursor: pointer; }
.txp-field-link:hover { text-decoration: underline; }
.txp-input-wrap { position: relative; }

.txp-field input[type="text"],
.txp-field input[type="email"],
.txp-field input[type="password"],
.txp-field input[type="tel"] {
  width: 100%; padding: 10px 12px;
  font-size: 13px; color: #1A1A2E;
  background: #FFFFFF; border: 1px solid #E0DBD5;
  border-radius: 10px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit;
}
.txp-field input:focus { border-color: #7C3AED; box-shadow: 0 0 0 3px rgba(124,58,237,0.08); }
.txp-field .txp-phone-wrap input[type="tel"],
.txp-field .txp-phone-input {
  width: auto !important;
  flex: 1 1 0;
  min-width: 0;
}
.txp-field input::placeholder { color: #BBBBBB; }
.txp-field.has-toggle input { padding-right: 44px; }
.txp-field.error input { border-color: #EF4444; }
.txp-field-error { font-size: 12px; color: #EF4444; margin-top: 4px; display: none; }
.txp-field.error .txp-field-error { display: block; }
.txp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Password toggle */
.txp-pwd-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #AAAAAA; padding: 0; display: flex; align-items: center; transition: color .15s;
}
.txp-pwd-toggle:hover { color: #555; }
.txp-pwd-toggle svg { width: 18px; height: 18px; }

/* ── PHONE WRAP ── */
.txp-phone-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
  border: none;
  background: transparent;
  position: relative;
  overflow: visible;
}
.txp-phone-wrap:focus-within { border-color: transparent; }
.txp-phone-prefix {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; background: #F9F7F4;
  border-right: 1px solid #E0DBD5; flex-shrink: 0;
  font-size: 13px; font-weight: 500; color: #1A1A2E;
  white-space: nowrap;
}
.txp-phone-flag { font-size: 16px; line-height: 1; }
.txp-phone-select { display: none !important; }
.txp-phone-wrap .nice-select { display: none !important; }

.txp-cc {
  position: relative;
  flex: 0 1 auto;
  width: auto;
  max-width: 58%;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #E0DBD5;
  border-radius: 10px;
}
.txp-cc.is-open,
.txp-cc:focus-within {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}
.txp-cc-btn {
  width: 100%;
  height: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500;
  color: #1A1A2E;
  line-height: 1.2;
  text-align: left;
}
.txp-cc-flag { font-size: 16px; line-height: 1; flex-shrink: 0; }
.txp-cc-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px !important;
  font-weight: 500;
}
.txp-cc-dial { font-size: 12px; font-weight: 600; }
.txp-cc-caret {
  width: 12px; height: 12px; color: #888; flex-shrink: 0;
  transition: transform .15s;
}
.txp-cc.is-open .txp-cc-caret { transform: rotate(180deg); }
.txp-cc-panel {
  display: none;
  flex-direction: column;
  position: fixed;
  background: #fff;
  border: 1px solid #E0DBD5;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  z-index: 2147483000;
  overflow: hidden;
}
.txp-cc-panel.is-open,
.txp-cc-panel:not([hidden]) {
  display: flex !important;
}
.txp-cc-panel[hidden] { display: none !important; }
.txp-cc-search {
  width: 100% !important;
  border: none !important;
  border-bottom: 1px solid #EDE9E4 !important;
  border-radius: 0 !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  box-shadow: none !important;
  outline: none !important;
  background: #fff !important;
}
.txp-cc-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 240px;
  overflow-y: auto;
}
.txp-cc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #1A1A2E;
  line-height: 1.3;
}
.txp-cc-item:hover,
.txp-cc-item.is-active { background: #F5F0FF; }
.txp-cc-item .txp-cc-name { flex: 1; min-width: 0; }
.txp-cc-item .txp-cc-code { color: #888; font-size: 12px; margin-left: auto; }

.txp-phone-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  padding: 10px 12px !important;
  font-size: 13px !important;
  color: #1A1A2E;
  background: #FFFFFF !important;
  border: 1px solid #E0DBD5 !important;
  border-radius: 10px !important;
  outline: none;
  font-family: inherit !important;
}
.txp-phone-input:focus {
  border-color: #7C3AED !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}
.txp-phone-input::placeholder { color: #BBBBBB; }

/* ── SOCIAL BUTTONS ── */
.txp-social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.txp-btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; background: #FFFFFF;
  border: 1px solid #E0DBD5; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: #1A1A2E;
  cursor: pointer; transition: background 0.15s, border-color 0.15s; font-family: inherit;
  text-decoration: none; box-sizing: border-box;
}
.txp-btn-social:hover { background: #F9F7F4; border-color: #C4B9B0; color: #1A1A2E; text-decoration: none; }
.txp-btn-social svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── DIVIDER ── */
.txp-divider {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.txp-divider-line { flex: 1; height: 1px; background: #EDE9E4; }
.txp-divider-text { font-size: 12px; color: #AAA; white-space: nowrap; }

/* ── PRIMARY BUTTON ── */
.txp-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 18px;
  background: #7C3AED; color: #fff; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.15s; font-family: inherit; text-align: center;
}
.txp-btn-primary:hover { background: #6D28D9; }
.txp-btn-primary:disabled { background: #C4B5FD; cursor: not-allowed; }
.txp-btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }
.txp-btn-primary--green { background: #229A52; }
.txp-btn-primary--green:hover { background: #1A7D41; }

.txp-btn-back-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; color: #888; text-decoration: none;
  cursor: pointer; transition: color .15s; margin-top: 4px; font-family: inherit;
  background: none; border: none; width: 100%;
}
.txp-btn-back-link:hover { color: #1A1A2E; }
.txp-btn-back-link svg { width: 15px; height: 15px; }

/* ── INFO BOX ── */
.txp-info-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: #F9F7F4; border: 1px solid #E8E3DC;
  border-radius: 10px; padding: 11px 13px; margin-bottom: 16px;
}
.txp-info-box svg { width: 16px; height: 16px; color: #999; flex-shrink: 0; margin-top: 1px; }
.txp-info-box p { font-size: 12px; color: #666; line-height: 1.55; }

/* ── TRUST ROW ── */
.txp-trust-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.txp-trust-row svg { width: 15px; height: 15px; color: #22C55E; flex-shrink: 0; }
.txp-trust-row span { font-size: 12px; color: #666; }

/* ── REMEMBER ROW ── */
.txp-remember-row { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.txp-remember-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #7C3AED; cursor: pointer; flex-shrink: 0; }
.txp-remember-row label { font-size: 13px; color: #555; cursor: pointer; }

/* ── FOOTER / NOTES ── */
.txp-card-footer { text-align: center; margin-top: 20px; font-size: 13px; color: #888; }
.txp-card-footer a, .txp-card-footer span { color: #7C3AED; text-decoration: none; cursor: pointer; }
.txp-card-footer a:hover, .txp-card-footer span:hover { text-decoration: underline; }
.txp-btn-note { font-size: 11px; color: #AAAAAA; text-align: center; margin-top: 10px; }
.txp-btn-signin { text-align: center; font-size: 12px; color: #888; margin-top: 12px; }
.txp-btn-signin span, .txp-btn-signin a { color: #7C3AED; cursor: pointer; text-decoration: none; }
.txp-bottom-note { text-align: center; margin-top: 20px; font-size: 11px; color: #AAAAAA; line-height: 1.6; }
.txp-bottom-note a { color: #AAAAAA; text-decoration: underline; font-size: 11px !important; font-family: inherit !important; }
.txp-legal-text,
.txp-auth-body .txp-legal-text,
#txp-auth-modal .txp-legal-text {
  font-size: 11px !important;
  color: #888 !important;
  line-height: 1.45 !important;
  margin-bottom: 16px;
  font-weight: 400 !important;
}
.txp-legal-text a,
.txp-legal-text b,
.txp-auth-body .txp-legal-text a,
.txp-auth-body .txp-legal-text b,
#txp-auth-modal .txp-legal-text a,
#txp-auth-modal .txp-legal-text b {
  font-size: 11px !important;
  line-height: inherit !important;
  font-family: inherit !important;
  font-weight: 500 !important;
}
.txp-legal-text a,
.txp-auth-body .txp-legal-text a,
#txp-auth-modal .txp-legal-text a {
  color: #7C3AED !important;
  text-decoration: underline;
}

/* ── STRENGTH BAR ── */
.txp-strength-wrap { margin-top: 8px; margin-bottom: 4px; }
.txp-strength-bars { display: flex; gap: 4px; margin-bottom: 4px; }
.txp-strength-bar { flex: 1; height: 3px; border-radius: 2px; background: #EDE9E4; transition: background .2s; }
.txp-strength-bar.weak { background: #EF4444; }
.txp-strength-bar.fair { background: #F59E0B; }
.txp-strength-bar.good { background: #10B981; }
.txp-strength-bar.strong { background: #7C3AED; }
.txp-strength-label { font-size: 11px; color: #AAAAAA; }
.txp-strength-label.weak { color: #EF4444; }
.txp-strength-label.fair { color: #F59E0B; }
.txp-strength-label.good { color: #10B981; }
.txp-strength-label.strong { color: #7C3AED; }

/* ── REQUIREMENTS ── */
.txp-req-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 20px; }
.txp-req-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #AAA; transition: color .2s; }
.txp-req-item.met { color: #16A34A; }
.txp-req-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid #DDD; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .2s, background .2s;
}
.txp-req-item.met .txp-req-dot { border-color: #16A34A; background: #16A34A; }
.txp-req-dot svg { width: 8px; height: 8px; display: none; }
.txp-req-item.met .txp-req-dot svg { display: block; }

/* ── SUCCESS STATE ── */
.txp-success-state { display: none; text-align: center; }
.txp-success-icon {
  width: 60px; height: 60px; border-radius: 50%; background: #DCFCE7;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.txp-success-icon svg { width: 28px; height: 28px; color: #16A34A; }
.txp-success-title { font-size: 18px; font-weight: 700; color: #1A1A2E; margin-bottom: 8px; }
.txp-success-sub { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 24px; }
.txp-email-highlight {
  display: inline-block; background: #F5F0FF; color: #7C3AED;
  padding: 4px 10px; border-radius: 6px; font-weight: 500; font-size: 14px; margin: 4px 0;
}
.txp-resend-note { font-size: 13px; color: #888; margin-top: 16px; }
.txp-resend-note span { color: #7C3AED; cursor: pointer; }
.txp-resend-note span:hover { text-decoration: underline; }

/* ── DONE SCREEN ── */
.txp-done-icon {
  width: 60px; height: 60px; border-radius: 50%; background: #F5F0FF;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.txp-done-icon svg { width: 30px; height: 30px; color: #7C3AED; }
.txp-done-title { font-size: 18px; font-weight: 600; color: #1A1A2E; text-align: center; margin-bottom: 8px; }
.txp-done-sub { font-size: 13px; color: #666; text-align: center; line-height: 1.6; margin-bottom: 24px; }

.txp-check-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.txp-check-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #555; }
.txp-check-item svg { width: 16px; height: 16px; color: #22C55E; flex-shrink: 0; }

/* ── OPTION BUTTONS (quiz) ── */
.txp-opt-list { display: flex; flex-direction: column; gap: 8px; }
.txp-opt-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 14px; background: #FFFFFF;
  border: 1px solid #E0DBD5; border-radius: 10px;
  font-size: 14px; color: #1A1A2E; cursor: pointer;
  text-align: left; transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.txp-opt-btn svg { width: 18px; height: 18px; color: #999; flex-shrink: 0; }
.txp-opt-btn:hover { background: #F9F7F4; border-color: #7C3AED; }
.txp-opt-btn.selected { background: #F5F0FF; border-color: #7C3AED; border-width: 1.5px; }

/* ── SELECT ── */
.txp-select {
  width: 100%; padding: 11px 14px; font-size: 14px; color: #1A1A2E;
  border: 1px solid #E0DBD5; border-radius: 10px;
  background: #FFFFFF; appearance: none; -webkit-appearance: none;
  cursor: pointer; outline: none; font-family: inherit;
}
.txp-select:focus { border-color: #7C3AED; }

/* ── ADVISOR CARD (quiz step) ── */
.txp-advisor-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.txp-advisor-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: #FFFFFF;
  border: 1px solid #E0DBD5; border-radius: 10px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.txp-advisor-card:hover { background: #F9F7F4; border-color: #7C3AED; }
.txp-advisor-card.selected { background: #F5F0FF; border-color: #7C3AED; border-width: 1.5px; }
.txp-advisor-avatar {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; color: #fff; flex-shrink: 0;
}
.txp-advisor-info { flex: 1; min-width: 0; }
.txp-advisor-name { font-size: 14px; font-weight: 600; color: #1A1A2E; margin-bottom: 1px; }
.txp-advisor-spec { font-size: 12px; color: #888; margin-bottom: 3px; }
.txp-advisor-best { font-size: 11px; color: #7C3AED; font-style: italic; }
.txp-advisor-meta { text-align: right; flex-shrink: 0; }
.txp-advisor-rating { font-size: 13px; font-weight: 600; color: #1A1A2E; }
.txp-advisor-price { font-size: 11px; color: #888; margin-top: 2px; }

/* ── DURATION BUTTONS ── */
.txp-dur-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.txp-dur-btn {
  flex: 1; min-width: 80px; padding: 10px 14px;
  border: 1px solid #E0DBD5; border-radius: 10px;
  background: #FFFFFF; font-size: 13px; font-weight: 500; color: #1A1A2E;
  cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.txp-dur-btn:hover { background: #F9F7F4; border-color: #7C3AED; }
.txp-dur-btn.selected { background: #F5F0FF; border-color: #7C3AED; border-width: 1.5px; }
.txp-dur-btn strong { display: block; font-size: 15px; font-weight: 700; color: #7C3AED; }

/* ── SESSION BOX ── */
.txp-session-box {
  background: #F9F7F4; border: 1px solid #E8E3DC;
  border-radius: 12px; padding: 16px; text-align: center; margin-bottom: 20px;
}
.txp-session-box-label { font-size: 12px; color: #888; margin-bottom: 4px; }
.txp-session-rate { font-size: 28px; font-weight: 700; color: #1A1A2E; line-height: 1; }
.txp-session-rate span { font-size: 15px; color: #888; font-weight: 400; }
.txp-session-note { font-size: 12px; color: #AAAAAA; margin-top: 4px; }

/* ── ADVISOR SIDEBAR (register/advisor) ── */
.txp-reg-layout { display: flex; gap: 24px; align-items: flex-start; }
.txp-reg-main { flex: 1; min-width: 0; }
.txp-reg-sidebar {
  width: 260px; flex-shrink: 0;
  background: #FFFFFF; border: 1px solid #E4E0DA;
  border-radius: 16px; padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky; top: 24px;
}
@media (max-width: 680px) {
  .txp-reg-layout { flex-direction: column; }
  .txp-reg-sidebar { width: 100%; position: static; }
}
.txp-sidebar-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7C3AED; margin-bottom: 12px; }
.txp-sidebar-advisor-photo {
  width: 64px; height: 64px; border-radius: 12px;
  object-fit: cover; margin-bottom: 10px;
}
.txp-sidebar-advisor-avatar {
  width: 64px; height: 64px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.txp-sidebar-advisor-name { font-size: 16px; font-weight: 700; color: #1A1A2E; margin-bottom: 2px; }
.txp-sidebar-advisor-spec { font-size: 12px; color: #888; margin-bottom: 6px; }
.txp-sidebar-advisor-rating { font-size: 13px; color: #1A1A2E; font-weight: 600; }
.txp-sidebar-divider { height: 1px; background: #EDE9E4; margin: 14px 0; }
.txp-sidebar-steps { list-style: none; padding: 0; }
.txp-sidebar-steps li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #888; padding: 4px 0;
}
.txp-sidebar-steps li.done { color: #22C55E; }
.txp-sidebar-steps li.active { color: #1A1A2E; font-weight: 600; }
.txp-sidebar-steps li .ctx-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #DDD; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.txp-sidebar-steps li.done .ctx-dot { border-color: #22C55E; background: #22C55E; color: #fff; }
.txp-sidebar-steps li.active .ctx-dot { border-color: #7C3AED; color: #7C3AED; }

/* ── MODAL (login modal, auth pages only) ── */
.txp-auth-body .txp-modal {
  position: fixed; z-index: 100000; left: 0; top: 0;
  width: 100vw; height: 100vh;
  display: none; align-items: center; justify-content: center;
}
.txp-auth-body .txp-modal.is-open { display: flex; }
.txp-auth-body .txp-modal__overlay {
  position: absolute; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20,16,31,.55);
}
.txp-auth-body .txp-modal__window {
  position: relative; z-index: 2;
  background: #F4F2EF; border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  width: 95%; max-width: 420px;
  max-height: 95vh; overflow-y: auto;
  padding: 28px 24px;
}
.txp-auth-body .txp-modal__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 26px; line-height: 1;
  cursor: pointer; color: #999; transition: color .15s; z-index: 3;
}
.txp-auth-body .txp-modal__close:hover { color: #1A1A2E; }
.txp-auth-body .txp-modal .txp-logo { margin-bottom: 16px; }

/* ── CONTEXT STEPS (advisor sidebar) ── aliases for .txp-sidebar-steps li */
.txp-ctx-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #888; padding: 4px 0; list-style: none;
  transition: color .15s;
}
.txp-ctx-step.done  { color: #22C55E; }
.txp-ctx-step.active { color: #1A1A2E; font-weight: 600; }
.txp-ctx-step .ctx-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #DDD; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; transition: border-color .15s, background .15s;
}
.txp-ctx-step.done  .ctx-dot { border-color: #22C55E; background: #22C55E; color: #fff; }
.txp-ctx-step.active .ctx-dot { border-color: #7C3AED; color: #7C3AED; }

/* ── MATCHED ADVISOR CARD (quiz done screen) ── */
.txp-advisor-card[style*="display:flex"],
.txp-advisor-card { display: flex; }
.txp-match-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: #F5F0FF;
  border: 1.5px solid #7C3AED; border-radius: 12px;
  margin-bottom: 20px;
}

/* ── RESPONSIVE TWEAKS ── */
@media (max-width: 480px) {
  .txp-auth-body { padding: 16px 12px 40px; }
  .txp-card { border-radius: 12px; padding: 20px 16px 24px; }
  .txp-step-body { padding: 16px 16px 20px; }
  .txp-card-title { font-size: 17px; }
  .txp-step-title { font-size: 16px; }
  .txp-btn-primary { font-size: 14px; padding: 13px 16px; }
  .txp-field-row { grid-template-columns: 1fr 1fr; }
  .txp-auth-wrap { max-width: 100%; }
}

/* ── NEXTEND SOCIAL LOGIN PLUGIN OVERRIDE ──
   Force all NSL buttons to look like .txp-btn-social (white, bordered, light)
   regardless of the plugin's own theme setting */
.txp-nsl-wrap { display: flex; flex-direction: column; gap: 10px; }

.txp-nsl-wrap .nsl-container,
.txp-nsl-wrap .nsl-container-block,
.txp-nsl-wrap .nsl-container-buttons { padding: 0 !important; margin: 0 !important; }

.txp-nsl-wrap .nsl-container-block .nsl-container-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.txp-nsl-wrap .nsl-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 46px !important;
  padding: 11px 16px !important;
  background: #FFFFFF !important;
  border: 1px solid #E0DBD5 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background .15s, border-color .15s !important;
  text-decoration: none !important;
}
.txp-nsl-wrap .nsl-button:hover {
  background: #F9F7F4 !important;
  border-color: #C4B9B0 !important;
}

/* Text inside button */
.txp-nsl-wrap .nsl-button-label-container,
.txp-nsl-wrap .nsl-button-label,
.txp-nsl-wrap .nsl-button span:not(.nsl-button-svg-container):not(.nsl-button-icon),
.txp-nsl-wrap .nsl-button div:not(.nsl-button-svg-container):not(.nsl-button-icon) {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1A1A2E !important;
  opacity: 1 !important;
  background: transparent !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Icon container */
.txp-nsl-wrap .nsl-button-svg-container,
.txp-nsl-wrap .nsl-button-icon {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
}
.txp-nsl-wrap .nsl-button-svg-container svg,
.txp-nsl-wrap .nsl-button-icon svg,
.txp-nsl-wrap .nsl-button-svg-container img,
.txp-nsl-wrap .nsl-button-icon img {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

/* Suppress any dark overlay or pseudo-element the plugin adds */
.txp-nsl-wrap .nsl-button::before,
.txp-nsl-wrap .nsl-button::after { display: none !important; }

/* Suppress WordPress header/footer on auth pages */
.txp-page-auth .site-header,
.txp-page-auth .site-footer,
.txp-page-auth #masthead,
.txp-page-auth #colophon { display: none !important; }

/* ── PAYMENT METHODS (wizard + profile) ── */
.txp-pm { max-width: 560px; }
.txp-pm-head { margin-bottom: 18px; }
.txp-pm-head h3 {
  font-size: 20px; font-weight: 700; color: #1A1A2E; margin: 0 0 4px;
}
.txp-pm-head p { font-size: 13px; color: #888; margin: 0; line-height: 1.5; }
.txp-pm-grid,
#csc-cards-container,
#wiz-cards.txp-cards {
  display: flex; flex-direction: column; gap: 10px;
}
.txp-pm-empty {
  text-align: center; font-size: 13px; color: #888;
  padding: 18px 12px; background: #F9F7F4; border: 1px dashed #E0DBD5;
  border-radius: 12px;
}

.txp-pm-card {
  background: #fff;
  border: 1px solid #E4E0DA;
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.txp-pm-card.is-primary {
  border-color: #C4B5FD;
  background: #F8F5FF;
  box-shadow: 0 0 0 3px rgba(124,58,237,.06);
}
.txp-pm-card__row {
  display: flex; align-items: flex-start; gap: 12px;
}
.txp-pm-card__meta { flex: 1; min-width: 0; }
.txp-pm-card__name {
  font-size: 15px; font-weight: 700; color: #1A1A2E; margin-bottom: 2px;
}
.txp-pm-card__num { font-size: 13px; color: #444; }
.txp-pm-card__exp { font-size: 12px; color: #999; margin-top: 2px; }

.txp-pm-logo {
  width: 44px; height: 28px; border-radius: 6px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff;
  margin-top: 2px;
}
.txp-pm-logo--visa { background: #1A1F71; }
.txp-pm-logo--amex { background: #2E77BC; font-size: 9px; }
.txp-pm-logo--disc { background: #FF6000; }
.txp-pm-logo--generic { background: #7C3AED; }
.txp-pm-logo--mc {
  background: #1A1A1A; position: relative; overflow: hidden;
}
.txp-pm-logo--mc i {
  position: absolute; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; opacity: .95;
}
.txp-pm-logo--mc i:first-child { left: 8px; background: #EB001B; }
.txp-pm-logo--mc i:last-child { left: 18px; background: #F79E1B; }

.txp-pm-delete {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: #C4B9B0; line-height: 0; border-radius: 8px; flex-shrink: 0;
}
.txp-pm-delete:hover { color: #DC2626; background: #FEF2F2; }
.txp-pm-delete svg { display: block; }

.txp-pm-badge,
.txp-pm-make,
.csc-set-primary.txp-pm-make {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 12px; padding: 9px 12px;
  border-radius: 10px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: none;
}
.txp-pm-badge {
  background: #7C3AED; color: #fff; cursor: default;
}
.txp-pm-make,
.csc-set-primary.txp-pm-make {
  background: #fff; color: #7C3AED;
  border: 1px solid #DDD6FE;
}
.txp-pm-make:hover,
.csc-set-primary.txp-pm-make:hover {
  background: #F5F0FF; border-color: #7C3AED;
}

.txp-pm-add,
#add-payment-method-button.txp-pm-add,
#wiz-add-card {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%; margin-top: 4px; padding: 12px 16px;
  background: #F8F5FF; color: #7C3AED;
  border: 1px solid #DDD6FE;
  border-radius: 14px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.txp-pm-add:hover,
#add-payment-method-button.txp-pm-add:hover,
#wiz-add-card:hover {
  background: #F5F0FF;
  border-color: #7C3AED;
  color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,.08);
}
.txp-pm-add__icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: #7C3AED; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.txp-pm-add__icon svg { display: block; }
#txp-cards-modal.is-adding #wiz-add-card,
#txp-cards-modal.is-adding #wiz-cards {
  display: none !important;
}

#txp-cards-modal.txp-modal-overlay {
  background: rgba(26, 26, 46, .55) !important;
  backdrop-filter: blur(6px);
}
#txp-cards-modal .txp-modal {
  border-radius: 16px !important;
  max-width: 420px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.18) !important;
  overflow: hidden;
}
#txp-cards-modal .txp-modal-header {
  padding: 16px 18px 12px !important;
}
#txp-cards-modal .txp-modal-header h4 {
  font-size: 16px !important; font-weight: 700 !important; color: #1A1A2E;
}
#txp-cards-modal .txp-modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
#txp-cards-modal .txp-modal-close:hover { background: #F4F2EF; color: #1A1A2E; }
#txp-cards-modal .txp-modal-body { padding: 8px 18px 18px !important; }

.txp-pay-summary__label {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 8px;
}
.txp-selected-card {
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid #DDD6FE;
  background: #F8F5FF;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.txp-selected-card__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.txp-selected-card .txp-pm-logo { margin-top: 0; }
.txp-selected-card__meta { flex: 1; min-width: 0; }
.txp-selected-card__brand {
  font-size: 15px; font-weight: 700; color: #1A1A2E; margin-bottom: 1px;
}
.txp-selected-card__num { font-size: 13px; color: #444; }
.txp-selected-card__exp { font-size: 12px; color: #888; margin-top: 2px; }
.txp-selected-card__badge {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #7C3AED;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.txp-selected-card.is-empty,
.txp-selected-card.is-loading {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 16px;
}
.txp-selected-card__empty {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  line-height: 1.4;
}
.txp-selected-card__empty strong { display: block; color: #1A1A2E; margin-bottom: 2px; }
.txp-selected-card__empty span { display: block; font-size: 12px; font-weight: 500; color: #888; }
#wiz-manage-cards.btn-outline {
  border: 1px solid #DDD6FE !important;
  color: #7C3AED !important;
  background: #fff !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
}
#wiz-manage-cards.btn-outline:hover {
  background: #F5F0FF !important;
}

#addPaymentMethodModal.custom-modal {
  background: rgba(26, 26, 46, .55) !important;
}
#addPaymentMethodModal .custom-modal__content {
  background: #fff !important;
  border-radius: 16px !important;
  padding: 24px 24px 22px !important;
  max-width: 440px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.18) !important;
  overflow: visible !important;
}
#addPaymentMethodModal .custom-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px !important;
  padding: 0 36px 0 0 !important;
}
#addPaymentMethodModal .custom-modal__title {
  font-size: 20px !important; font-weight: 700 !important;
  color: #1A1A2E !important; margin: 0 !important;
  line-height: 1.25 !important;
}
#addPaymentMethodModal .custom-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; font-size: 22px !important;
  color: #888 !important; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
#addPaymentMethodModal .custom-modal__close:hover { background: #FFF0EC; color: #EC604F !important; }
#addPaymentMethodModal #csc-save-card,
#csc-save-card {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
#addPaymentMethodModal .txp-addcard-sub {
  margin: 0 0 16px !important;
  padding: 0 !important;
}
#addPaymentMethodModal .txp-addcard-element {
  padding: 16px 14px 8px !important;
  border: 1px solid #EDE9E4 !important;
  border-radius: 14px !important;
  background: #fff !important;
}
#addPaymentMethodModal .txp-addcard-trust {
  margin: 14px 0 12px !important;
}
#addPaymentMethodModal #csc-save-button {
  background: #EC604F !important;
}
#addPaymentMethodModal #csc-save-button:hover { background: #D95544 !important; }
#addPaymentMethodModal #csc-save-button:disabled { background: #F5B7AE !important; }
#csc-save-button,
.txp-addcard-save {
  width: 100%; margin-top: 4px; padding: 12px 16px !important;
  background: #7C3AED !important; color: #fff !important;
  border: none !important; border-radius: 10px !important;
  font-size: 14px !important; font-weight: 600 !important; cursor: pointer;
  font-family: inherit;
}
#csc-save-button:hover,
.txp-addcard-save:hover { background: #6D28D9 !important; }
#csc-save-button:disabled,
.txp-addcard-save:disabled { background: #C4B5FD !important; cursor: not-allowed; }

.txp-addcard-panel {
  margin-top: 8px;
  padding: 18px 16px 16px;
  background: #F8F5FF;
  border: 1px solid #DDD6FE;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.txp-addcard-panel[hidden] { display: none !important; }
.txp-addcard-head { margin-bottom: 12px; }
.txp-addcard-title {
  font-size: 15px; font-weight: 700; color: #1A1A2E; margin: 0 0 4px;
}
.txp-addcard-sub {
  font-size: 13px !important; color: #666 !important; line-height: 1.5 !important;
  margin: 0 0 14px !important; font-weight: 400 !important;
}
#txp-cards-modal.is-adding .txp-addcard-panel {
  margin: 0;
  padding: 6px 2px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#txp-cards-modal.is-adding .txp-modal-body {
  padding: 12px 18px 18px !important;
}
.txp-addcard-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 22px 12px; font-size: 13px; color: #7C3AED; background: #fff;
  border: 1px solid #DDD6FE; border-radius: 12px; margin-bottom: 12px;
}
.txp-addcard-loading.is-hidden { display: none !important; }
.txp-addcard-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #DDD6FE; border-top-color: #7C3AED;
  animation: txp-spin .7s linear infinite; flex-shrink: 0;
}
@keyframes txp-spin { to { transform: rotate(360deg); } }
.txp-addcard-element {
  background: #fff; border: 1px solid #DDD6FE; border-radius: 12px;
  padding: 12px 12px 4px; min-height: 80px;
}
.txp-addcard-error {
  display: none; margin: 10px 0 0; padding: 10px 12px;
  font-size: 13px; color: #B91C1C; background: #FEF2F2;
  border: 1px solid #FECACA; border-radius: 10px; line-height: 1.4;
}
.txp-addcard-error.is-visible { display: block; }
.txp-addcard-error.is-ok {
  display: block; color: #166534; background: #F0FDF4; border-color: #BBF7D0;
}
.txp-addcard-trust {
  font-size: 12px; color: #888; text-align: center;
  margin: 12px 0 10px; line-height: 1.4;
}
.txp-addcard-cancel {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 8px; padding: 11px 14px;
  background: #fff; border: 1px solid #DDD6FE; color: #7C3AED;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; border-radius: 10px;
  transition: background .15s, border-color .15s;
}
.txp-addcard-cancel:hover {
  background: #F5F0FF; border-color: #7C3AED;
}
#txp-payment-element-wrap { position: relative; }
#txp-payment-element-wrap.is-loading::before {
  content: 'Preparing secure form…';
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; font-size: 13px; color: #7C3AED;
  background: #F8F5FF; border: 1px solid #DDD6FE; border-radius: 12px;
}
