/* =========================
   LOCALITY AUTH PAGES
   account.html + signup.html
========================= */

.auth-shell {
  min-height: 100vh;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(360px, 560px) 1fr;
  gap: 28px;
  align-items: stretch;
}

.auth-card,
.auth-side-panel {
  border-radius: 38px;
  border: 1px solid rgba(20, 50, 92, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 80px rgba(20, 50, 92, 0.10);
  backdrop-filter: blur(18px);
}

.auth-card {
  padding: 38px;
}

.auth-logo {
  display: inline-block;
  margin-bottom: 28px;
}

.auth-logo img {
  width: 190px;
  max-width: 70vw;
  height: auto;
  display: block;
}

.auth-card h1 {
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.55;
  margin: 0 0 26px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form h2,
.completion-card h2 {
  color: var(--navy);
  font-size: 1.35rem;
  margin: 0 0 4px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(20, 50, 92, 0.12);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.auth-form textarea {
  min-height: 110px;
  resize: vertical;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: rgba(8, 196, 100, 0.42);
  box-shadow: 0 0 0 4px rgba(8, 196, 100, 0.10);
}

.auth-primary-btn,
.auth-primary-link,
.auth-secondary-btn,
.auth-secondary-link {
  min-height: 50px;
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-primary-btn,
.auth-primary-link {
  background: var(--green);
  color: white;
}

.auth-secondary-btn,
.auth-secondary-link {
  background: rgba(20, 50, 92, 0.08);
  color: var(--navy);
}

.auth-primary-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.text-button {
  border: none;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.auth-status {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(20, 50, 92, 0.06);
  color: var(--muted);
  font-weight: 850;
  line-height: 1.4;
}

.auth-status[data-status="success"] {
  color: var(--green);
  background: rgba(8, 196, 100, 0.10);
}

.auth-status[data-status="error"] {
  color: #9d3328;
  background: rgba(196, 55, 45, 0.10);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 24px 0 16px;
  color: var(--muted);
  font-weight: 850;
}

.auth-divider span {
  height: 1px;
  background: rgba(20, 50, 92, 0.10);
}

.auth-footer-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.auth-footer-links a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.auth-side-panel {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 20% 15%, rgba(8, 196, 100, 0.18), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(138, 106, 74, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(246, 243, 234, 0.86));
}

.auth-side-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 50, 92, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 50, 92, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black);
  pointer-events: none;
}

.auth-side-panel > * {
  position: relative;
  z-index: 1;
}

.side-kicker {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.auth-side-panel h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.auth-side-panel p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
  max-width: 460px;
}

.-shell {
  grid-template-columns: minmax(420px, 680px) 1fr;
}

.signup-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0;
}

.progress-step {
  padding: 12px;
  border-radius: 18px;
  background: rgba(20, 50, 92, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-step span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(20, 50, 92, 0.10);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-step.active,
.progress-step.complete {
  background: rgba(8, 196, 100, 0.12);
  color: var(--green);
}

.progress-step.active span,
.progress-step.complete span {
  background: var(--green);
  color: white;
}

.auth-helper-text {
  margin: -4px 0 12px;
  color: #6b7a8f;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 650;
}

.signup-checkbox-group {
  border: 1px solid rgba(12, 33, 66, 0.08);
  border-radius: 18px;
  padding: 16px;
  margin: 12px 0 18px;
  background: rgba(255, 255, 255, 0.58);
}

.signup-checkbox-group legend {
  padding: 0 8px;
  color: #6b7a8f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: #10284a;
  font-size: 0.92rem;
  font-weight: 750;
}

.signup-checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: #12bf5b;
}

.signup-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.signup-progress {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 760px) {
  .signup-two-column {
    grid-template-columns: 1fr;
  }

  .signup-progress {
    grid-template-columns: 1fr;
  }
}

.signup-step,
.completion-card {
  display: none;
}

.signup-step.active,
.completion-card.active {
  display: grid;
  gap: 16px;
}

.signup-progress {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 680px) {
  .signup-progress {
    grid-template-columns: 1fr;
  }
}

.completion-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 252, 245, 0.82);
  border: 1px solid rgba(20, 50, 92, 0.08);
}

.completion-card p {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .auth-shell,
  .signup-shell {
    grid-template-columns: 1fr;
  }

  .auth-side-panel {
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  .auth-shell {
    width: min(100% - 28px, 1180px);
    padding: 26px 0 50px;
  }

  .auth-card,
  .auth-side-panel {
    border-radius: 30px;
    padding: 26px 20px;
  }

  .auth-logo img {
    width: 155px;
  }

  .auth-card h1 {
    font-size: 2.6rem;
  }

  .signup-progress {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   AUTH VISUAL PANEL — LOCALITY ORB
========================================================= */

.auth-orb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.48)),
    linear-gradient(
      135deg,
      rgba(112, 255, 146, 0.14),
      rgba(255,255,255,0.04) 42%,
      rgba(239,244,238,0.70) 100%
    );
  border: 1px solid rgba(165, 206, 184, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 24px 60px rgba(31, 58, 44, 0.08);
}

.auth-orb-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 93, 69, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 93, 69, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.auth-orb-hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.auth-orb-floor {
  display: none;
}

.auth-orb-floor-line,
.auth-orb-floor-glow {
  display: none;
}

.auth-orb-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(52px);
  z-index: 1;
}

.auth-orb-glow-one {
  width: 320px;
  height: 320px;
  top: 12%;
  left: 18%;
  opacity: 0.34;
  background: radial-gradient(
    circle,
    rgba(88, 235, 122, 0.16),
    rgba(88, 235, 122, 0)
  );
  animation: authOrbGlowOne 10s ease-in-out infinite;
}

.auth-orb-glow-two {
  width: 340px;
  height: 340px;
  top: 44%;
  right: 12%;
  opacity: 0.24;
  background: radial-gradient(
    circle,
    rgba(18, 200, 76, 0.12),
    rgba(18, 200, 76, 0)
  );
  animation: authOrbGlowTwo 14s ease-in-out infinite;
}

.auth-orb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.auth-orb-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  opacity: 1;
  filter:
    drop-shadow(0 0 8px rgba(18, 214, 76, 0.12))
    drop-shadow(0 0 18px rgba(37, 227, 90, 0.10));
}

@keyframes authOrbGlowOne {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(16px, -12px, 0) scale(1.08);
  }
}

@keyframes authOrbGlowTwo {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 12px, 0) scale(1.06);
  }
}

@media (max-width: 1100px) {
  .auth-visual-panel {
    display: none;
  }
}

.phone-field-block {
  display: grid;
  gap: 8px;
}

.phone-field-label {
  color: #6b7a8f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented-phone-field {
  display: grid;
  grid-template-columns: auto auto 72px auto 72px auto minmax(92px, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(12, 33, 66, 0.1);
  border-radius: 16px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.82);
}

.phone-country,
.phone-symbol {
  color: #10284a;
  font-weight: 900;
  font-size: 1rem;
}

.phone-segment {
  width: 100%;
  border: 0 !important;
  outline: 0 !important;
  padding: 8px 6px !important;
  background: rgba(18, 191, 91, 0.08) !important;
  border-radius: 10px !important;
  color: #10284a;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.05em;
}

.phone-segment:focus {
  background: rgba(18, 191, 91, 0.14) !important;
  box-shadow: 0 0 0 2px rgba(18, 191, 91, 0.18);
}

@media (max-width: 620px) {
  .segmented-phone-field {
    grid-template-columns: auto auto 1fr auto 1fr auto 1.2fr;
    gap: 5px;
    padding: 8px 10px;
  }
}

.signup-checkbox-group {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.signup-checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  margin: 0;
  line-height: 1.35;
}

.signup-checkbox-row input {
  margin-top: 2px;
}

.signup-shell {
  grid-template-columns: minmax(600px, 0.95fr) minmax(380px, 0.75fr);
  gap: 32px;
}

.signup-card {
  max-width: 720px;
}

@media (max-width: 1100px) {
  .signup-shell {
    grid-template-columns: 1fr;
  }

  .signup-card {
    max-width: 720px;
  }
}

.auth-orb-canvas {
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 58%,
    rgba(0, 0, 0, 0.72) 76%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle at center,
    black 58%,
    rgba(0, 0, 0, 0.72) 76%,
    transparent 100%
  );
}

.segmented-phone-field {
  display: grid;
  grid-template-columns: auto auto 64px auto 64px auto 92px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(12, 33, 66, 0.1);
  border-radius: 16px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.86);
}

.phone-country,
.phone-symbol {
  color: #10284a;
  font-weight: 900;
  font-size: 0.95rem;
}

.phone-segment {
  height: 34px;
  min-height: 34px;
  width: 100%;
  border: 0 !important;
  outline: 0 !important;
  padding: 4px 6px !important;
  background: rgba(18, 191, 91, 0.08) !important;
  border-radius: 10px !important;
  color: #10284a;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.04em;
}

.phone-segment:focus {
  background: rgba(18, 191, 91, 0.14) !important;
  box-shadow: 0 0 0 2px rgba(18, 191, 91, 0.16);
}

.phone-field-block {
  display: grid;
  gap: 8px;
}

.phone-field-label {
  color: #6b7a8f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-checkbox-group {
  display: grid;
  gap: 0;
  padding: 14px 16px;
  border: 1px solid rgba(12, 33, 66, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.signup-checkbox-group legend {
  padding: 0 8px;
  color: #6b7a8f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-checkbox-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  color: #10284a;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  border-bottom: 1px solid rgba(12, 33, 66, 0.06);
}

.signup-checkbox-row:last-child {
  border-bottom: 0;
}

.signup-checkbox-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #12bf5b;
}

.signup-checkbox-row span {
  display: block;
}

/* =========================================================
   PHONE FIELD FINAL COMPACT OVERRIDE
   Matches standard input height, tighter segmented cells
========================================================= */

.segmented-phone-field {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 54px;
  height: 54px;
  border: 1px solid rgba(12, 33, 66, 0.1);
  border-radius: 16px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.86);
  box-sizing: border-box;
}

.phone-country,
.phone-symbol {
  flex: 0 0 auto;
  color: #10284a;
  font-weight: 900;
  font-size: 0.98rem;
  line-height: 1;
}

.segmented-phone-field .phone-segment {
  flex: 0 0 auto;
  height: 32px !important;
  min-height: 32px !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 5px !important;
  margin: 0 !important;
  background: rgba(18, 191, 91, 0.08) !important;
  border-radius: 9px !important;
  color: #10284a;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.03em;
  box-sizing: border-box;
}

.segmented-phone-field .phone-area,
.segmented-phone-field .phone-prefix {
  width: 54px !important;
}

.segmented-phone-field .phone-line {
  width: 76px !important;
}

.segmented-phone-field .phone-segment:focus {
  background: rgba(18, 191, 91, 0.14) !important;
  box-shadow: 0 0 0 2px rgba(18, 191, 91, 0.16);
}

.phone-field-block {
  display: grid;
  gap: 8px;
}

.phone-field-label {
  color: #6b7a8f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-secondary-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 33, 66, 0.06);
  color: #10284a;
  font-weight: 900;
  cursor: pointer;
  margin-top: 8px;
}

.auth-secondary-btn:hover {
  background: rgba(12, 33, 66, 0.1);
}

.signup-back-btn + .auth-primary-btn {
  margin-top: 10px;
}


/* =========================================================
   Finish Setup Button
========================================================= */

.auth-footer-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.auth-footer-button:hover {
  text-decoration: underline;
}

.resume-draft-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 33, 66, 0.28);
  backdrop-filter: blur(10px);
}

.resume-draft-modal.hidden {
  display: none;
}

.resume-draft-card {
  position: relative;
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(20, 50, 92, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(20, 50, 92, 0.22);
}

.resume-draft-card h2 {
  color: var(--navy);
  font-size: 1.55rem;
  margin: 0;
}

.resume-draft-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.resume-draft-card input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(20, 50, 92, 0.12);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.resume-draft-card input:focus {
  border-color: rgba(8, 196, 100, 0.42);
  box-shadow: 0 0 0 4px rgba(8, 196, 100, 0.10);
}

.resume-draft-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 33, 66, 0.06);
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
}


/* =========================================================
   UPDATED LOCALITY PROFILE BUILDER — STEP 4
========================================================= */

.profile-builder-step {
  gap: 22px;
}

.profile-builder-heading h2 {
  color: var(--navy);
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.profile-builder-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-completion-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(12, 33, 66, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(20, 50, 92, 0.08);
}

.completion-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: var(--navy);
  font-weight: 950;
}

.completion-card-header span {
  font-size: 0.84rem;
}

.completion-card-header strong {
  color: var(--green);
}

.completion-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(12, 33, 66, 0.08);
}

.completion-meter div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.25s ease;
}

.completion-section-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.completion-section-list li {
  display: grid;
  grid-template-columns: 13px 1fr;
  align-items: center;
  gap: 8px;
  color: #59697d;
  font-size: 0.82rem;
  font-weight: 850;
}

.completion-section-list li span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(12, 33, 66, 0.16);
}

.completion-section-list li[data-status="complete"] span {
  background: var(--green);
}

.completion-section-list li[data-status="draft"] span {
  background: #d9a33a;
}

.completion-section-list li em {
  justify-self: start;
  grid-column: 2;
  width: fit-content;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 196, 100, 0.1);
  color: var(--green);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.locality-profile-canvas {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid rgba(12, 33, 66, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(250,248,241,0.82));
  box-shadow: 0 18px 50px rgba(20, 50, 92, 0.08);
}

.profile-builder-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(12, 33, 66, 0.05);
  color: var(--muted);
  font-weight: 900;
}

.mini-editor-btn {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(12, 33, 66, 0.07);
  color: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.mini-editor-btn:hover {
  background: rgba(12, 33, 66, 0.11);
}

.profile-builder-module {
  border: 1px solid rgba(12, 33, 66, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.builder-profile-hero {
  display: grid;
  padding: 0;
}

.profile-banner-dropzone {
  position: relative;
  min-height: 180px;
  border: 0;
  border-bottom: 1px solid rgba(12, 33, 66, 0.08);
  background:
    radial-gradient(circle at 20% 25%, rgba(8, 196, 100, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(238, 244, 234, 0.92), rgba(255, 252, 245, 0.96));
  color: var(--muted);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  overflow: hidden;
}

.profile-banner-dropzone:hover,
.profile-logo-dropzone:hover,
.gallery-upload-card:hover {
  box-shadow: inset 0 0 0 2px rgba(8, 196, 100, 0.2);
}

.profile-media-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.profile-logo-dropzone {
  width: 104px;
  height: 104px;
  border: 1px solid rgba(12, 33, 66, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.profile-logo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity-copy h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.profile-identity-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 850;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(8, 196, 100, 0.11);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 950;
}

.profile-chip.muted {
  background: rgba(12, 33, 66, 0.07);
  color: var(--muted);
}

.editable-text-module,
.gallery-builder-module,
.certifications-builder-module,
.product-preview-builder,
.profile-visibility-module {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.module-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.module-heading-row h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
}

.module-kicker {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.module-kicker.recommended {
  color: #2e9e58;
}

.module-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.section-status-pill {
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(12, 33, 66, 0.07);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-status-pill[data-status="complete"] {
  background: rgba(8, 196, 100, 0.12);
  color: var(--green);
}

.section-status-pill[data-status="draft"] {
  background: rgba(217, 163, 58, 0.16);
  color: #9a6a13;
}

.section-status-pill.muted {
  background: rgba(12, 33, 66, 0.06);
  color: #8190a2;
}

.editable-text-module textarea {
  min-height: 140px;
  border: 1px solid rgba(12, 33, 66, 0.1);
  border-radius: 18px;
  padding: 14px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font: inherit;
  font-weight: 750;
  line-height: 1.5;
}

.module-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-upload-card,
.gallery-image-card {
  min-height: 120px;
  border: 1px dashed rgba(12, 33, 66, 0.18);
  border-radius: 18px;
  background: rgba(12, 33, 66, 0.04);
  color: var(--muted);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  overflow: hidden;
}

.gallery-image-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.certification-grid label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(12, 33, 66, 0.04);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
}

.certification-grid input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--green);
}

.custom-certification-label {
  display: grid;
  gap: 8px;
}

.selected-certifications-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-certifications-list span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(8, 196, 100, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
}

.product-preview-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-preview-card {
  min-height: 100px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 18px;
  background: rgba(12, 33, 66, 0.04);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 14px;
}

@media (max-width: 980px) {
  .profile-builder-layout {
    grid-template-columns: 1fr;
  }

  .profile-completion-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 680px) {
  .profile-identity-row {
    grid-template-columns: 1fr;
  }

  .gallery-preview-grid,
  .certification-grid,
  .product-preview-row {
    grid-template-columns: 1fr;
  }
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 78px !important;
  position: relative;
  z-index: 1;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 5;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(12, 33, 66, 0.08);
  color: var(--navy);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
  pointer-events: auto;
}

.password-toggle:hover {
  background: rgba(12, 33, 66, 0.13);
}

/* =========================================================
   SIGNUP PROFILE BUILDER TRANSITION
========================================================= */

.profile-transition-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(12, 33, 66, 0.08);
  background:
    radial-gradient(circle at 10% 10%, rgba(8, 196, 100, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 40px rgba(20, 50, 92, 0.07);
}

.profile-transition-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(8, 196, 100, 0.1);
  font-size: 1.6rem;
}

.profile-transition-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.15rem;
}

.profile-transition-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.profile-transition-actions {
  display: grid;
  gap: 12px;
}

.personal-buyer-option {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(8, 196, 100, 0.18);
  background:
    radial-gradient(circle at 92% 12%, rgba(8, 196, 100, 0.08), transparent 34%),
    rgba(244, 255, 247, 0.72);
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.personal-buyer-option input {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin-top: 3px;
  accent-color: var(--green);
}

.personal-buyer-option span {
  display: grid;
  gap: 4px;
}

.personal-buyer-option strong {
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 950;
}

.personal-buyer-option small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.4;
}

.business-fields-shell {
  display: grid;
  gap: 16px;
}

.business-fields-shell.is-disabled {
  opacity: 0.42;
  filter: grayscale(0.1);
  pointer-events: none;
}

/* =========================
   ACCOUNT TYPE CHOICE
========================= */

.account-type-grid {
  display: grid;
  gap: 14px;
}

.account-type-card {
  width: 100%;
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(12, 33, 66, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(8, 196, 100, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(20, 50, 92, 0.06);
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.account-type-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 196, 100, 0.24);
  box-shadow: 0 22px 48px rgba(20, 50, 92, 0.1);
}

.account-type-card strong {
  max-width: 420px;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.account-type-card small {
  max-width: 500px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 760;
}

.account-type-pill {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(8, 196, 100, 0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-type-pill.business {
  background: rgba(12, 33, 66, 0.07);
  color: var(--navy);
}
