/* Worth calculator — from liftlife.html, scoped for index home */
.page-worth {
  --worth-dark: #0A1628;
  --worth-dark-2: #132035;
  --worth-green: #22C55E;
  --worth-green-dark: #16A34A;
  --worth-cream: #EFECE6;
  --worth-white: #FFFFFF;
  --worth-gray: #6B7280;
  --worth-gray-light: #9CA3AF;
  --worth-border: #E5E7EB;
  --worth-amber: #F59E0B;
  background: #fff;
}
.page-worth .worth-inner,
.worth-modal-backdrop {
  --dark: var(--worth-dark, #0A1628);
  --dark-2: var(--worth-dark-2, #132035);
  --green: var(--worth-green, #22C55E);
  --green-dark: var(--worth-green-dark, #16A34A);
  --cream: var(--worth-cream, #EFECE6);
  --white: var(--worth-white, #FFFFFF);
  --gray: var(--worth-gray, #6B7280);
  --gray-light: var(--worth-gray-light, #9CA3AF);
  --border: var(--worth-border, #E5E7EB);
  --amber: var(--worth-amber, #F59E0B);
}
.worth-modal-backdrop {
  --dark: #0A1628;
  --green: #22C55E;
  --green-dark: #16A34A;
  --white: #FFFFFF;
}

/* ── LAYOUT ── */
.page-worth .worth-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* ── LEFT HERO ── */
.page-worth .worth-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 28px 64px 80px;
}
.page-worth .hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--dark); text-transform: uppercase; margin-bottom: 28px;
}
.page-worth .hero-eyebrow::before {
  content: ''; width: 28px; height: 2.5px;
  background: var(--green); border-radius: 2px;
}
.page-worth .worth-left h1 {
  font-size: 52px; font-weight: 900; color: var(--dark);
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 22px;
}
.page-worth .worth-left h1 em { font-style: normal; color: var(--green-dark); }
.page-worth .worth-left p {
  font-size: 15.5px; color: #4B5563; line-height: 1.75;
  max-width: 400px; margin-bottom: 52px;
}
.page-worth .worth-left p strong { color: var(--dark); font-weight: 700; }
.page-worth .worth-left .stats {
  display: flex; gap: 36px; padding-top: 36px; border-top: 1px solid #D1D5DB;
}
.page-worth .worth-left .stat-val {
  font-size: 26px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px;
}
.page-worth .worth-left .stat-label {
  font-size: 12.5px; color: var(--gray); margin-top: 3px;
}

/* ── RIGHT PANEL ── */
.page-worth .worth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 36px 44px; background: #F7F5F0;
}
.page-worth .worth-card {
  background: var(--white); border-radius: 24px; padding: 32px 34px 30px;
  width: 100%; max-width: 520px;
  box-shadow: 0 2px 36px rgba(10,22,40,0.10);
}

/* ── STEPPER ── */
.page-worth .stepper { display: flex; align-items: center; margin-bottom: 24px; }
.page-worth .st {
  display: flex; align-items: center; gap: 7px; font-size: 12px;
  font-weight: 500; color: var(--gray-light); white-space: nowrap;
}
.page-worth .st.active { color: var(--dark); font-weight: 700; }
.page-worth .st.done   { color: var(--green-dark); font-weight: 600; }
.page-worth .st-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: #F3F4F6; color: var(--gray-light); flex-shrink: 0; transition: all 0.25s;
}
.page-worth .st.active .st-num { background: var(--dark); color: white; }
.page-worth .st.done .st-num   { background: var(--green); color: white; font-size: 13px; }
.page-worth .st-line { flex: 1; height: 1.5px; background: #E5E7EB; margin: 0 8px; border-radius: 2px; }

/* ── STEP HEADING ── */
.page-worth .step-head { margin-bottom: 16px; }
.page-worth .step-title { font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 2px; }
.page-worth .step-hint  { font-size: 12px; color: var(--gray-light); }

/* ── SEARCH BAR ── */
.page-worth .search-wrap { position: relative; margin-bottom: 14px; }
.page-worth .search-wrap svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: #9CA3AF; pointer-events: none;
}
.page-worth .search-wrap input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border); border-radius: 11px;
  font-size: 13.5px; color: var(--dark); background: #FAFAFA;
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.page-worth .search-wrap input:focus { border-color: var(--green); background: #fff; }
.page-worth .search-wrap input::placeholder { color: #B0B7C3; }

/* ── PROFESSION GRID ── */
.page-worth .prof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 20px;
  max-height: 300px; overflow-y: auto; padding-right: 2px;
}
.page-worth .prof-grid::-webkit-scrollbar { width: 4px; }
.page-worth .prof-grid::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 4px; }
.page-worth .prof-card {
  border: 1.5px solid var(--border); border-radius: 13px;
  padding: 12px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: all 0.18s; background: white;
  text-align: center; user-select: none; position: relative;
}
.page-worth .prof-card:hover {
  border-color: var(--green); background: #F0FDF4;
  transform: translateY(-1px); box-shadow: 0 3px 10px rgba(34,197,94,0.12);
}
.page-worth .prof-card.selected { border-color: var(--dark); background: var(--dark); }
.page-worth .prof-card.selected .prof-name { color: white; }
.page-worth .prof-card.selected .popular-tag { background: rgba(255,255,255,0.15); color: white; }
.page-worth .prof-card.fresher {
  grid-column: span 2; flex-direction: row;
  padding: 12px 14px; border-style: dashed;
  background: #FAFAFA; gap: 11px; text-align: left;
}
.page-worth .prof-card.fresher:hover { border-style: solid; }
.page-worth .prof-card.fresher.selected { border-style: solid; }
.page-worth .prof-card.fresher .fresher-text .prof-name { font-size: 13px; font-weight: 700; }
.page-worth .prof-card.fresher .fresher-sub { font-size: 11px; color: var(--gray); margin-top: 1px; }
.page-worth .prof-card.fresher.selected .fresher-sub { color: #9CA3AF; }
.page-worth .prof-icon  { font-size: 20px; line-height: 1; }
.page-worth .prof-name  { font-size: 11px; font-weight: 600; color: var(--dark); line-height: 1.3; }
.page-worth .popular-tag {
  position: absolute; top: -1px; right: -1px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--green-dark); background: #DCFCE7;
  padding: 2px 6px; border-radius: 0 12px 0 8px;
}
.page-worth .no-results {
  grid-column: span 4; padding: 20px 0; text-align: center;
  color: var(--gray); font-size: 13px;
}

/* ── EXPERIENCE OPTIONS ── */
.page-worth .exp-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.page-worth .exp-opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 13px;
  cursor: pointer; background: white; transition: all 0.18s; user-select: none;
}
.page-worth .exp-opt:hover { border-color: var(--green); background: #F0FDF4; }
.page-worth .exp-opt.selected { border-color: var(--dark); background: var(--dark); }
.page-worth .exp-opt.selected .exp-label { color: white; }
.page-worth .exp-opt.selected .exp-range { color: rgba(255,255,255,0.5); }
.page-worth .exp-left  { flex: 1; }
.page-worth .exp-icon  { font-size: 18px; flex-shrink: 0; }
.page-worth .exp-label { font-size: 13.5px; font-weight: 600; color: var(--dark); }
.page-worth .exp-range { font-size: 11.5px; color: var(--gray-light); margin-top: 1px; }

/* ── STEP 3: LOCATION ── */
.page-worth .loc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.page-worth .loc-field { position: relative; }
.page-worth .loc-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--gray); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 6px;
}
.page-worth .loc-field input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 11px;
  font-size: 14px; color: var(--dark); background: white;
  outline: none; transition: border-color 0.2s;
}
.page-worth .loc-field input:focus { border-color: var(--green); }
.page-worth .loc-field input::placeholder { color: #B0B7C3; }
.page-worth .tier-badge {
  font-size: 11.5px; font-weight: 600;
  margin-top: 5px; min-height: 16px; transition: all 0.2s;
}
.page-worth .tier-badge.t1 { color: var(--green-dark); }
.page-worth .tier-badge.t2 { color: #0891B2; }
.page-worth .tier-badge.t3 { color: #7C3AED; }
.page-worth .tier-badge.t4 { color: var(--amber); }
.page-worth .tier-badge.t5 { color: #9CA3AF; }

/* Autocomplete dropdown */
.page-worth .city-dropdown {
  position: absolute; top: calc(100% - 4px); left: 0; right: 0; z-index: 50;
  background: white; border: 1.5px solid var(--green);
  border-top: none; border-radius: 0 0 11px 11px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  max-height: 240px; overflow-y: auto; display: none;
}
.page-worth .city-dropdown.open { display: block; }
.page-worth .city-dropdown::-webkit-scrollbar { width: 4px; }
.page-worth .city-dropdown::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 4px; }
.page-worth .city-opt {
  padding: 9px 14px; cursor: pointer; display: flex;
  align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--dark); transition: background 0.1s;
}
.page-worth .city-opt:hover { background: #F0FDF4; }
.page-worth .city-opt .city-tier-pill {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 100px; flex-shrink: 0; margin-left: 8px;
}
.page-worth .city-opt .t1-pill { background: #DCFCE7; color: var(--green-dark); }
.page-worth .city-opt .t2-pill { background: #E0F2FE; color: #0891B2; }
.page-worth .city-opt .t3-pill { background: #EDE9FE; color: #7C3AED; }
.page-worth .city-opt .t4-pill { background: #FEF3C7; color: #92400E; }
.page-worth .city-opt .t5-pill { background: #F3F4F6; color: #6B7280; }
.page-worth .city-searching {
  padding: 11px 14px; font-size: 12.5px; color: var(--gray-light);
  font-style: italic; display: flex; align-items: center; gap: 6px;
}
.page-worth .city-no-global { padding: 11px 14px; font-size: 12.5px; color: #EF4444; }
.page-worth .city-global-divider {
  padding: 6px 14px 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gray-light);
  background: #F9FAFB; border-top: 1px solid var(--border);
}
.page-worth .city-global-search-btn {
  padding: 9px 14px; cursor: pointer;
  font-size: 12.5px; color: #0891B2;
  border-top: 1px solid var(--border);
  background: #F0F9FF; transition: background 0.15s;
  display: flex; align-items: center; gap: 4px;
}
.page-worth .city-global-search-btn:hover { background: #E0F2FE; }
.page-worth .city-global-search-btn strong { color: var(--dark); }

/* Salary field */
.page-worth .sal-field { margin-top: 14px; margin-bottom: 18px; }
.page-worth .sal-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--gray); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 6px;
}
.page-worth .sal-wrap { position: relative; }
.page-worth .sal-sym {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--gray); font-weight: 600; pointer-events: none;
}
.page-worth .sal-wrap input {
  width: 100%; padding: 12px 14px 12px 28px;
  border: 1.5px solid var(--border); border-radius: 11px;
  font-size: 14px; color: var(--dark); background: white;
  outline: none; transition: border-color 0.2s;
}
.page-worth .sal-wrap input:focus { border-color: var(--green); }
.page-worth .field-err { border-color: #EF4444 !important; }
.page-worth .err-msg { font-size: 11px; color: #EF4444; margin-top: 4px; }

/* ── BUTTONS ── */
.page-worth .btn-primary {
  width: 100%; padding: 14px;
  background: var(--dark); color: white; border: none;
  border-radius: 13px; font-size: 14.5px; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.1px;
}
.page-worth .btn-primary:hover:not(:disabled) { background: var(--dark-2); transform: translateY(-1px); }
.page-worth .btn-primary:disabled { opacity: 0.38; cursor: not-allowed; transform: none !important; }
.page-worth .btn-back {
  padding: 14px 20px;
  background: transparent; color: var(--gray);
  border: 1.5px solid var(--border); border-radius: 13px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: all 0.18s; flex-shrink: 0;
}
.page-worth .btn-back:hover { border-color: var(--dark); color: var(--dark); }
.page-worth .btn-row { display: flex; gap: 10px; }
.page-worth .btn-row .btn-primary { flex: 1; }

/* ── STEP VISIBILITY ── */
.page-worth .step-view { display: none; }
.page-worth .step-view.active { display: block; }

/* ── MODAL ── */
.worth-modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(10,22,40,0.75); backdrop-filter: blur(6px);
  z-index: 200; align-items: center; justify-content: center; padding: 24px;
}
.worth-modal-backdrop.open { display: flex; }
.worth-modal-backdrop .salary-card {
  background: var(--dark); border-radius: 26px;
  padding: 26px 30px; width: 100%; max-width: 390px;
  text-align: center; position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: worthCardIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes worthCardIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.worth-modal-backdrop .sc-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none;
  color: rgba(255,255,255,0.6); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.worth-modal-backdrop .sc-close:hover { background: rgba(255,255,255,0.2); }
.worth-modal-backdrop .sc-brand {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  color: rgba(255,255,255,0.3); text-transform: uppercase; margin-bottom: 16px;
}
.worth-modal-backdrop .sc-tabs {
  display: flex; background: rgba(255,255,255,0.07);
  border-radius: 12px; padding: 4px; margin-bottom: 20px; gap: 4px;
}
.worth-modal-backdrop .sc-tab {
  flex: 1; padding: 9px 0; border: none; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; background: transparent; color: rgba(255,255,255,0.45);
}
.worth-modal-backdrop .sc-tab.active {
  background: white; color: var(--dark); box-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
.worth-modal-backdrop .sc-panel { display: none; }
.worth-modal-backdrop .sc-panel.active { display: block; }
.worth-modal-backdrop .sc-label {
  font-size: 11px; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: 3px;
}
.worth-modal-backdrop .sc-old {
  font-size: 14px; color: rgba(255,255,255,0.35);
  text-decoration: line-through; margin-bottom: 5px;
}
.worth-modal-backdrop .sc-amount {
  font-size: 50px; font-weight: 900; color: white;
  line-height: 1; letter-spacing: -2px; margin-bottom: 5px;
}
.worth-modal-backdrop .sc-period {
  font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 14px;
}
.worth-modal-backdrop .sc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green); color: white; font-size: 12.5px; font-weight: 700;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
}
.worth-modal-backdrop .sc-divider {
  border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 0 0 16px;
}
.worth-modal-backdrop .sc-details {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 18px; text-align: left;
}
.worth-modal-backdrop .sc-detail .dl {
  font-size: 10px; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px;
}
.worth-modal-backdrop .sc-detail .dv {
  font-size: 13px; font-weight: 600; color: white;
}
.worth-modal-backdrop .sc-cta {
  width: 100%; padding: 14px; background: white; color: var(--dark);
  border: none; border-radius: 12px; font-size: 14.5px; font-weight: 700;
  cursor: pointer; margin-bottom: 10px; transition: background 0.2s;
}
.worth-modal-backdrop .sc-cta:hover { background: #F0FDF4; }
.worth-modal-backdrop .sc-disclaimer {
  font-size: 10.5px; color: rgba(255,255,255,0.22);
}
.worth-modal-backdrop .sc-signup-heading {
  font-size: 17px; font-weight: 800; color: white; margin-bottom: 4px;
}
.worth-modal-backdrop .sc-signup-sub {
  font-size: 12.5px; color: rgba(255,255,255,0.45);
  margin-bottom: 18px; line-height: 1.5;
}
.worth-modal-backdrop .sc-field { margin-bottom: 10px; text-align: left; }
.worth-modal-backdrop .sc-field label {
  display: block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 5px;
}
.worth-modal-backdrop .sc-field input {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 11px; font-size: 14px; color: white; outline: none; transition: border-color 0.2s;
}
.worth-modal-backdrop .sc-field input::placeholder { color: rgba(255,255,255,0.22); }
.worth-modal-backdrop .sc-field input:focus {
  border-color: var(--green); background: rgba(255,255,255,0.1);
}
.worth-modal-backdrop .sc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.worth-modal-backdrop .sc-signup-btn {
  display: block; width: 100%; padding: 14px; background: var(--green); color: white;
  border: none; border-radius: 12px; font-size: 14.5px; font-weight: 700;
  cursor: pointer; margin-top: 6px; margin-bottom: 12px; transition: background 0.2s;
  text-align: center; text-decoration: none;
}
.worth-modal-backdrop .sc-signup-btn:hover { background: var(--green-dark); }
.worth-modal-backdrop .sc-login-hint { font-size: 12px; color: rgba(255,255,255,0.35); }
.worth-modal-backdrop .sc-login-hint a {
  color: rgba(255,255,255,0.6); text-decoration: underline; cursor: pointer;
}

@media (max-width: 900px) {
  .page-worth .worth-inner { grid-template-columns: 1fr; height: auto; }
  .page-worth .worth-left { padding: 40px 24px 24px; }
  .page-worth .worth-left h1 { font-size: 36px; }
  .page-worth .worth-right { padding: 0 20px 36px; }
  .page-worth .prof-grid { grid-template-columns: repeat(3, 1fr); }
}
