@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: 'DM Sans', Inter, sans-serif;
  color: #F5F7FA;
  background: #0B1423;
}

/* ===== DESIGN TOKENS ===== */
:root {
  --navy:   #0B1423;
  --teal:   #84CC16;
  --surface:#0f1b2f;
  --border: rgba(255,255,255,0.14);
  --text:   #F5F7FA;
  --muted:  #8b95a3;
  --white:  #ffffff;
  --radius-card: 12px;
  --radius-btn:  8px;
  --radius-input:8px;
}

/* ===== LOGO / WORDMARK ===== */
.px-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.px-logo-text {
  font-family: 'DM Sans', Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #F5F7FA;
  letter-spacing: -0.4px;
}
.px-logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #84CC16;
  display: inline-block;
  margin-left: 1px;
  flex-shrink: 0;
}

/* ===== PROGRESS INDICATOR ===== */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 0;
}
.prog-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8b95a3;
}
.prog-step .prog-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #8b95a3;
  background: #0f1b2f;
  flex-shrink: 0;
}
.prog-step .prog-label { display: none; }
@media (min-width: 480px) {
  .prog-step .prog-label { display: inline; }
}
.prog-step.done .prog-num {
  background: #84CC16;
  border-color: #84CC16;
  color: #F5F7FA;
}
.prog-step.done { color: #84CC16; }
.prog-step.active .prog-num {
  background: var(--navy);
  border-color: #F5F7FA;
  color: #F5F7FA;
}
.prog-step.active { color: #F5F7FA; }
.prog-connector {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.14);
  margin: 0 4px;
  flex-shrink: 0;
}
.prog-connector.done { background: #84CC16; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: #84CC16;
  color: #F5F7FA;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', Inter, sans-serif;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s, opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover { background: #6ca712; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline {
  background: #0f1b2f;
  color: #F5F7FA;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', Inter, sans-serif;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover { border-color: #84CC16; color: #84CC16; background: #f0fafa; }

.btn-ghost {
  background: none;
  border: none;
  color: #8b95a3;
  font-size: 13.5px;
  font-family: 'DM Sans', Inter, sans-serif;
  cursor: pointer;
  padding: 10px 16px;
  text-decoration: underline;
}
.btn-ghost:hover { color: #F5F7FA; }

/* ===== FORMS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #F5F7FA;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-input);
  padding: 11px 13px;
  font-size: 14px;
  font-family: 'DM Sans', Inter, sans-serif;
  color: #F5F7FA;
  outline: none;
  background: #0f1b2f;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #84CC16; }
.form-group input.error { border-color: #C0392B; }
.form-group textarea { resize: vertical; }
.optional { color: #8b95a3; font-weight: 400; font-size: 12px; }
.form-hint { font-size: 12px; color: #8b95a3; margin-top: 2px; }
.form-error { font-size: 12px; color: #C0392B; margin-top: 3px; display: none; }
.form-error.visible { display: block; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 90px 90px; gap: 14px; }

/* Password field with show/hide */
.input-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-pw-wrap input {
  width: 100%;
  padding-right: 60px;
}
.pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #84CC16;
  cursor: pointer;
  padding: 4px;
  font-family: 'DM Sans', Inter, sans-serif;
}

/* Password strength meter */
.pw-strength-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.14);
  margin-top: 6px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.2s, background 0.2s;
}
.pw-strength-label {
  font-size: 11px;
  margin-top: 3px;
  color: #8b95a3;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: #F5F7FA;
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #84CC16;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-label a { color: #84CC16; text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

/* ===== PAGE HEADER (shared) ===== */
.page-header {
  background: #0f1b2f;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}
@media (max-width: 640px) {
  .page-header { padding: 14px 18px; }
}

/* ===== JOIN PAGE ===== */
.join-page { background: #0f1b2f; min-height: 100vh; }

.join-split {
  display: flex;
  min-height: 100vh;
}

.join-left {
  flex: 0 0 420px;
  background: #0B1423;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
@media (max-width: 900px) {
  .join-left { display: none; }
}

.join-left-logo .px-logo-text { color: #F5F7FA; }
.join-left-logo .px-logo-dot { background: #84CC16; }

.join-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: #F5F7FA;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.join-hero p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 24px;
}
.join-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.jf-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}
.jf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #84CC16;
  flex-shrink: 0;
  margin-top: 5px;
}
.join-testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 18px 20px;
}
.jt-quote {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}
.jt-author {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.join-right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 32px 60px;
  overflow-y: auto;
  background: #0B1423;
}
@media (max-width: 640px) {
  .join-right { padding: 32px 20px 60px; }
}

.join-card {
  background: #0f1b2f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 36px 36px 28px;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 640px) {
  .join-card { padding: 28px 20px 24px; }
}

/* Mobile header (only shown when left panel hidden) */
.join-mobile-header {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
@media (max-width: 900px) {
  .join-mobile-header { display: flex; }
}

.join-card-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: #F5F7FA;
  margin-bottom: 4px;
}
.join-card-head p {
  font-size: 13.5px;
  color: #8b95a3;
}

#join-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-divider {
  text-align: center;
  position: relative;
  margin: 2px 0;
}
.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.14);
}
.form-divider span {
  background: #0f1b2f;
  position: relative;
  padding: 0 12px;
  font-size: 12.5px;
  color: #8b95a3;
}

.form-footer {
  text-align: center;
  font-size: 13.5px;
  color: #8b95a3;
}
.form-footer a { color: #84CC16; font-weight: 700; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* ===== PRICING PAGE ===== */
.pricing-page { background: #0f1b2f; min-height: 100vh; }

.pricing-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.pricing-intro {
  text-align: center;
  margin-bottom: 40px;
}
.pricing-welcome {
  font-size: 15px;
  font-weight: 700;
  color: #84CC16;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.pricing-intro h1 {
  font-size: 30px;
  font-weight: 700;
  color: #F5F7FA;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.pricing-intro p {
  font-size: 14.5px;
  color: #8b95a3;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  background: #0f1b2f;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 3px;
}
.btoggle {
  background: none;
  border: none;
  border-radius: 7px;
  padding: 8px 22px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'DM Sans', Inter, sans-serif;
  color: #8b95a3;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btoggle.active {
  background: var(--navy);
  color: #F5F7FA;
}
.save-badge {
  background: #d1fae5;
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.btoggle.active .save-badge {
  background: rgba(255,255,255,0.2);
  color: #F5F7FA;
}

/* Tier grid */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .tier-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

.tier-card {
  background: #0f1b2f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, border-color 0.15s;
  position: relative;
}
.tier-card:hover { border-color: #84CC16; }

.tier-popular {
  border: 2px solid #84CC16;
  box-shadow: 0 6px 28px rgba(1,105,111,0.14);
}

.tier-badge-row {
  height: 26px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.popular-badge {
  background: #84CC16;
  color: #F5F7FA;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tier-name {
  font-size: 20px;
  font-weight: 700;
  color: #F5F7FA;
  margin-bottom: 6px;
}
.tier-desc {
  font-size: 13px;
  color: #8b95a3;
  line-height: 1.55;
  margin-bottom: 20px;
  min-height: 38px;
}
.tier-price-block {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 2px;
}
.tier-currency {
  font-size: 17px;
  font-weight: 700;
  color: #F5F7FA;
}
.tier-amount {
  font-size: 40px;
  font-weight: 700;
  color: #F5F7FA;
  letter-spacing: -1px;
  line-height: 1;
}
.tier-period {
  font-size: 13.5px;
  color: #8b95a3;
  margin-left: 2px;
}
.tier-original {
  font-size: 13px;
  color: #8b95a3;
  text-decoration: line-through;
  margin-bottom: 2px;
  height: 18px;
  display: block;
}
.tier-trial {
  font-size: 12px;
  color: #8b95a3;
  margin-bottom: 20px;
}
.tier-trial strong { color: #84CC16; }

.tier-btn {
  width: 100%;
  border-radius: var(--radius-btn);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'DM Sans', Inter, sans-serif;
  cursor: pointer;
  border: none;
  margin-bottom: 22px;
  transition: all 0.15s;
}
.tier-btn-primary { background: #84CC16; color: #F5F7FA; }
.tier-btn-primary:hover { background: #6ca712; }
.tier-btn-outline { background: transparent; color: #F5F7FA; border: 1.5px solid rgba(255,255,255,0.14); }
.tier-btn-outline:hover { border-color: #84CC16; color: #84CC16; background: rgba(132,204,22,0.08); }

.tier-divider {
  height: 1px;
  background: rgba(255,255,255,0.14);
  margin-bottom: 18px;
}

.tier-features { display: flex; flex-direction: column; gap: 7px; }
.tf-section {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8b95a3;
  margin-top: 6px;
  margin-bottom: 1px;
}
.tf-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #F5F7FA;
  line-height: 1.4;
}
.tf-check { color: #84CC16; font-weight: 700; flex-shrink: 0; }
.tf-cross { color: var(--border); flex-shrink: 0; }
.tf-off { color: #8b95a3; }

.no-cc-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8b95a3;
  background: #0f1b2f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 5px 14px;
  margin-top: 4px;
}

.pricing-footer { text-align: center; }
.pricing-footer p { font-size: 13px; color: #8b95a3; margin-bottom: 10px; }
.skip-link { font-size: 13.5px; color: #84CC16; text-decoration: none; font-weight: 600; }
.skip-link:hover { text-decoration: underline; }

/* ===== PROFILE SETUP PAGE ===== */
.setup-page { background: #0f1b2f; min-height: 100vh; }

.setup-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.setup-intro {
  margin-bottom: 28px;
}
.setup-intro h1 {
  font-size: 24px;
  font-weight: 700;
  color: #F5F7FA;
  margin-bottom: 6px;
}
.setup-intro p { font-size: 14px; color: #8b95a3; }

/* Two-column layout */
.setup-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) {
  .setup-columns { grid-template-columns: 1fr; }
}

.setup-col-card {
  background: #0f1b2f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8b95a3;
  margin-bottom: 4px;
}

/* Logo upload */
.logo-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: #0f1b2f;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.logo-upload-zone:hover { border-color: #84CC16; }
.logo-upload-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.logo-upload-zone .logo-initials {
  font-size: 22px;
  font-weight: 700;
  color: #F5F7FA;
  background: var(--navy);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.logo-upload-zone .logo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
  font-size: 20px;
}
.logo-upload-zone:hover .logo-overlay { opacity: 1; }

.logo-upload-area {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-upload-info {
  flex: 1;
}
.logo-upload-info p {
  font-size: 13px;
  color: #8b95a3;
  margin-bottom: 8px;
  line-height: 1.45;
}
.logo-upload-btn {
  display: inline-block;
  background: #0f1b2f;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'DM Sans', Inter, sans-serif;
  cursor: pointer;
  color: #F5F7FA;
  transition: border-color 0.15s;
}
.logo-upload-btn:hover { border-color: #84CC16; color: #84CC16; }

/* ABN validation */
.input-with-status {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-status input { width: 100%; padding-right: 36px; }
.field-status {
  position: absolute;
  right: 12px;
  font-size: 14px;
  pointer-events: none;
}

/* Specialties — pill checkboxes */
.specialty-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  font-size: 13px;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: #0f1b2f;
  color: #F5F7FA;
  transition: all 0.12s;
  user-select: none;
}
.spec-pill input[type="checkbox"] { display: none; }
.spec-pill:has(input:checked) {
  background: #EDF7DC;
  border-color: #84CC16;
  color: #84CC16;
}

/* Service radius slider */
.radius-slider-wrap { display: flex; flex-direction: column; gap: 6px; }
.radius-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8b95a3;
}
.radius-value {
  font-size: 14px;
  font-weight: 700;
  color: #F5F7FA;
  text-align: center;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.14);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #84CC16;
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #84CC16;
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

/* Form actions */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
.form-actions .btn-primary {
  width: auto;
  min-width: 180px;
}
.form-actions .btn-ghost {
  width: auto;
}

/* ===== INNER HEADER (reused across setup/pricing) ===== */
.inner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: #0f1b2f;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}
@media (max-width: 640px) {
  .inner-header { padding: 14px 18px; }
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr 78px 78px; }
  .tier-grid { max-width: 360px; }
  .setup-col-card { padding: 20px 18px; }
}
