.profile-page {
  --profile-max: 1280px;
  --profile-gutter: clamp(24px, 4.2vw, 76px);
  --profile-border: #e9e9e9;
  --profile-muted: #6f7477;
  background: #fff;
}

.profile-page .home-link,
.profile-page .nav-group-links a {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.profile-page .home-link {
  padding: 0 0 15px;
  color: #111;
  font-size: clamp(1.28rem, 1.52vw, 1.95rem);
  letter-spacing: -0.035em;
}

.profile-page .nav-group-links a {
  min-height: 54px;
  padding: 15px 0 10px 12px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.02vw, 1.3rem);
  line-height: 1.35;
  transition: color 150ms ease, transform 150ms ease;
}

.profile-page .nav-group-links a:hover,
.profile-page .nav-group-links a:focus-visible {
  color: #111;
  transform: translateX(4px);
}

.profile-page .nav-group-links-large a {
  min-height: 88px;
  padding-left: 0;
  font-size: clamp(1.16rem, 1.43vw, 1.84rem);
}

.profile-page .account-nav.is-current span,
.profile-page .account-nav.is-current a {
  color: #111;
}

.profile-main {
  min-width: 0;
  padding: 0 0 100px;
}

.profile-topbar {
  display: flex;
  width: min(calc(100% - (2 * var(--profile-gutter))), var(--profile-max));
  min-height: clamp(100px, 9vw, 132px);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.profile-wordmark {
  margin: 0;
  padding: 0;
  font-size: clamp(2.65rem, 2.8vw, 3.55rem);
  text-decoration: none;
}

.back-home {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 0.86rem;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.back-home:hover {
  border-color: #aaa;
  transform: translateY(-1px);
}

.back-home .material-symbols-rounded {
  font-size: 19px;
}

.profile-hero {
  position: relative;
  width: min(calc(100% - (2 * var(--profile-gutter))), var(--profile-max));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--profile-border);
  border-radius: clamp(22px, 2vw, 32px);
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 30, 38, 0.08);
}

.profile-cover {
  height: clamp(142px, 12vw, 190px);
  overflow: hidden;
  background: #eef0ef;
}

.profile-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  filter: saturate(0.72) brightness(1.08);
}

.profile-identity {
  display: grid;
  padding: 0 clamp(28px, 3.4vw, 54px) clamp(28px, 2.5vw, 42px);
  grid-template-columns: clamp(112px, 10vw, 154px) minmax(0, 1fr);
  gap: clamp(24px, 2.7vw, 42px);
  align-items: end;
}

.profile-avatar {
  width: clamp(112px, 10vw, 154px);
  aspect-ratio: 1;
  margin-top: clamp(-72px, -5.2vw, -54px);
  border: 6px solid #fff;
  border-radius: 28%;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.profile-name-block {
  padding-top: 22px;
}

.eyebrow-row,
.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.verified-pill,
.rating-summary {
  display: inline-flex;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  background: #f3f5f5;
  color: #4c5558;
  font-size: 0.7rem;
  font-weight: 600;
}

.verified-pill .material-symbols-rounded,
.rating-summary .material-icons-round {
  color: #8aa8b0;
  font-size: 16px;
}

.rating-summary .material-icons-round {
  color: var(--star);
}

.profile-name-block h1 {
  margin: 14px 0 7px;
  color: #111;
  font-size: clamp(2rem, 2.7vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.profile-name-block > p {
  max-width: 780px;
  margin: 0;
  color: var(--profile-muted);
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.55;
}

.profile-meta-row {
  margin-top: 16px;
  color: #8a8e90;
  font-size: 0.76rem;
}

.profile-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-meta-row .material-symbols-rounded {
  font-size: 17px;
}

.business-details {
  display: grid;
  margin: 0;
  padding: clamp(22px, 2.2vw, 34px) clamp(28px, 3.4vw, 54px);
  border-top: 1px solid var(--profile-border);
  grid-template-columns: 0.8fr 1fr 1.6fr;
  gap: 22px;
}

.business-details div {
  min-width: 0;
}

.business-details dt {
  margin-bottom: 6px;
  color: #9a9d9f;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-details dd {
  margin: 0;
  color: #303335;
  font-size: 0.86rem;
  line-height: 1.45;
}

.profile-tabs {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  width: min(calc(100% - (2 * var(--profile-gutter))), var(--profile-max));
  margin: clamp(26px, 3.2vw, 48px) auto 0;
  padding: 6px;
  border: 1px solid #ececec;
  border-radius: 999px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(20, 30, 38, 0.07);
  backdrop-filter: blur(18px);
}

.profile-tabs button {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9b9b9b;
  cursor: pointer;
  font-size: 0.86rem;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.profile-tabs button.is-active {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.profile-panel {
  width: min(calc(100% - (2 * var(--profile-gutter))), var(--profile-max));
  margin: clamp(38px, 4.5vw, 68px) auto 0;
}

.panel-heading {
  display: flex;
  margin-bottom: 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading > p,
.panel-heading > div > p {
  margin: 0 0 7px;
  color: #94989a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 0;
  color: #111;
  font-size: clamp(1.65rem, 2.2vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.profile-completion {
  display: inline-flex;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  align-items: center;
  background: #edf3f4;
  color: #547079;
  font-size: 0.72rem;
  font-weight: 600;
}

.profile-form {
  overflow: hidden;
  border: 1px solid var(--profile-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 30, 38, 0.065);
}

.form-section {
  display: grid;
  padding: clamp(24px, 3vw, 44px);
  border-bottom: 1px solid var(--profile-border);
  grid-template-columns: minmax(190px, 0.7fr) minmax(280px, 1.5fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: start;
}

.form-copy h3 {
  margin: 0;
  color: #1b1c1d;
  font-size: 1rem;
  font-weight: 600;
}

.form-copy p {
  margin: 8px 0 0;
  color: #989b9d;
  font-size: 0.76rem;
  line-height: 1.55;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 16px;
  outline: none;
  background: #fbfbfa;
  color: #222;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.profile-form input {
  min-height: 54px;
  padding: 0 18px;
}

.profile-form textarea {
  min-height: 132px;
  padding: 16px 18px;
  resize: vertical;
  line-height: 1.6;
}

.profile-form input:focus,
.profile-form textarea:focus {
  border-color: #9eb8bf;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(170, 199, 207, 0.23);
}

.category-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-selector button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #777;
  cursor: pointer;
  font-size: 0.8rem;
}

.category-selector button.is-selected {
  border-color: #a9c2c8;
  background: #edf3f4;
  color: #23383e;
}

.form-actions {
  display: flex;
  min-height: 88px;
  padding: 18px clamp(24px, 3vw, 44px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fafafa;
}

.form-actions p {
  margin: 0;
  color: #9a9d9f;
  font-size: 0.75rem;
}

.form-actions button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 18px;
}

.portfolio-grid figure {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #eee;
}

.portfolio-grid .portfolio-feature {
  grid-row: 1 / 3;
}

.portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-grid figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #272727;
  font-size: 0.76rem;
  backdrop-filter: blur(12px);
}

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

.review-card,
.posts-list article {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--profile-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 30, 38, 0.055);
}

.review-stars {
  color: var(--star);
  letter-spacing: 0.08em;
}

.review-card p {
  margin: 22px 0;
  color: #35383a;
  font-size: 1rem;
  line-height: 1.7;
}

.review-card span,
.posts-list time {
  color: #999;
  font-size: 0.72rem;
}

.posts-list {
  display: grid;
  gap: 14px;
}

.posts-list h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.posts-list p {
  margin: 0;
  color: #777;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .profile-topbar {
    display: none;
  }

  .profile-hero {
    margin-top: 28px;
  }

  .profile-tabs {
    top: 84px;
  }
}

@media (max-width: 760px) {
  .profile-page {
    --profile-gutter: 18px;
  }

  .profile-cover {
    height: 128px;
  }

  .profile-identity {
    padding: 0 22px 24px;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
  }

  .profile-avatar {
    width: 92px;
    margin-top: -38px;
    border-width: 4px;
    border-radius: 24%;
  }

  .profile-name-block {
    padding-top: 14px;
  }

  .profile-name-block h1 {
    margin-top: 10px;
    font-size: 1.7rem;
  }

  .profile-meta-row {
    display: none;
  }

  .business-details {
    padding: 22px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-tabs {
    top: 82px;
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(124px, 1fr));
    border-radius: 18px;
    scrollbar-width: none;
  }

  .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .panel-heading,
  .account-heading {
    align-items: flex-start;
  }

  .profile-completion {
    display: none;
  }

  .form-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

  .portfolio-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .portfolio-grid .portfolio-feature {
    grid-row: auto;
  }
}

@media (max-width: 480px) {
  .profile-identity {
    display: block;
  }

  .profile-name-block {
    padding-top: 10px;
  }

  .eyebrow-row {
    margin-top: 8px;
  }

  .profile-name-block h1 {
    font-size: 1.85rem;
  }
}

/* ÁREAS DE ATUAÇÃO DESTACADAS NO CARTÃO DE VISITA DO PERFIL (.PROFILE-HERO) */
.profile-areas-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.areas-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--profile-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.areas-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: #f0f0f4;
  border: 1px solid #e2e2e8;
  color: #111111;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hero-category-badge:hover {
  background: #e4e4eb;
}

.empty-categories-msg {
  font-size: 0.88rem;
  color: var(--profile-muted);
  font-style: italic;
}

/* GERENCIADOR DE CATEGORIAS E BARRA DE PESQUISA NA CONTA */
.categories-manager-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.category-search-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafa;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  padding: 16px 18px;
}

.category-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #111111;
  border-radius: 999px;
  padding: 6px 16px;
}

.category-search-input-wrapper .search-icon {
  color: #666666;
  font-size: 1.2rem;
}

.category-search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.96rem;
  color: #111111;
  padding: 8px 0;
}

.category-suggestions-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #eee;
}

.suggestions-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #666666;
}

.suggestions-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px dashed #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-pill-btn:hover {
  background: #dbeafe;
  border-style: solid;
  transform: translateY(-1px);
}

.active-categories-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.active-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111111;
}

.category-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid #111111;
  background: #111111;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-active-pill:hover {
  background: #2b2b2b;
  transform: translateY(-1px);
}

.category-active-pill .remove-icon {
  font-size: 1.1rem;
  margin-left: 2px;
  opacity: 0.7;
}

.category-active-pill:hover .remove-icon {
  opacity: 1;
  color: #ef4444;
}

