.page-shell {
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  padding: 22px 16px 44px;
  background: var(--bg-site);
}

.hero-card {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.page-shell > .hero-card:first-of-type {
  margin-bottom: 28px;
}

body.perfis-page .hero-card--list-intro {
  margin-bottom: 12px;
  padding: 14px 16px;
}

body.perfis-page .hero-card--list-intro h1 {
  margin-bottom: 6px;
  font-size: 21px;
}

body.perfis-page .hero-card--list-intro p {
  margin-bottom: 8px;
  font-size: 13px;
}

body.perfis-page .hero-card--list-intro .search-form {
  margin-top: 10px;
}

body.perfis-page .results-meta {
  margin-top: 4px;
  margin-bottom: 12px;
}

body.home-page .hero-card--search {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 2.2vh, 20px);
  padding: clamp(22px, 5vh, 46px) 24px;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.home-page .hero-card--search h1 {
  margin: 0;
}

body.home-page .hero-card--search .home-hero-logo {
  width: min(60vw, 220px);
  height: auto;
  max-width: 100%;
}

body.home-page .hero-card--search p {
  margin: 0;
  max-width: 48ch;
}

body.home-page .hero-card--search .search-form {
  margin-top: clamp(6px, 1.5vh, 14px);
  width: min(100%, 640px);
}

body.home-page .hero-card--create {
  margin-top: 20px;
  padding-top: 18px;
}

body.home-page .hero-card--create h1 {
  font-size: 24px;
  margin-bottom: 0;
}

body.home-page .hero-card--create > * {
  margin-top: 0;
  margin-bottom: 0;
}

body.home-page .hero-card--create > * + * {
  margin-top: 0;
}

body.home-page .hero-card--create h1 {
  margin-bottom: 22px;
}

body.home-page .hero-card--create p {
  margin-bottom: 22px;
}

body.home-page .hero-card--create .price-badge {
  margin-bottom: 24px;
}

body.home-page .hero-card-create-action {
  margin-top: 0;
}

.hero-card h1 {
  margin-bottom: 10px;
  font-size: 24px;
  color: var(--text-primary);
}

.hero-card p {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.search-form {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
}

.search-form button {
  border: none;
  border-radius: 12px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 18px;
}

.results-meta {
  margin: 12px 2px 18px;
  color: var(--text-secondary);
  font-size: 13px;
}

.profile-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.profile-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.profile-card:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 7px;
  overflow: hidden;
  background: #e2e8f0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h3 {
  margin-bottom: 2px;
  font-size: 16px;
  color: var(--text-primary);
}

.profile-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.profile-pill {
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 180px;
}

.profile-indication-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.profile-indication-mini i {
  font-size: 12px;
  color: #0f766e;
}

.empty-box {
  padding: 30px 20px;
  border: 1px dashed #c2cedd;
  border-radius: 7px;
  text-align: center;
  color: var(--text-secondary);
  background: #f8fafc;
}

.pagination {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid #dbe2ea;
  background: #fff;
  color: var(--text-primary);
  font-size: 13px;
  text-decoration: none;
}

.pagination .active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.cta-landing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 11px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cta-landing:hover {
  background: var(--brand-primary-hover);
}

.create-cta-block {
  margin-top: 16px;
}

.create-cta-block p strong {
  color: var(--text-primary);
}

.create-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.create-cta-actions .btn-plan-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dbe2ea;
  border-radius: 11px;
  background: #fff;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 560px) {
  .page-shell {
    padding: 16px 12px 30px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    height: 42px;
  }

  .profile-card {
    grid-template-columns: 50px 1fr;
  }

  .profile-pill {
    justify-self: start;
  }

  .profile-side {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }
}
@media (prefers-color-scheme: dark) {
  .search-form input,
  .profile-pill,
  .pagination a,
  .pagination span,
  .create-cta-actions .btn-plan-link {
    background: #21262d;
    border-color: #21262d;
    color: var(--text-primary);
  }

  .search-form input::placeholder {
    color: #8ea4c2;
  }

  .profile-card,
  .empty-box {
    background: #1d232b;
    border-color: var(--surface);
  }

  .profile-avatar {
    background: #21262d;
  }

  .profile-card:hover,
  .create-cta-actions .btn-plan-link:hover,
  .pagination a:hover {
    border-color: #2a313c;
    background: #2a313c;
  }
}

:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .empty-box {
  background: var(--surface);
  border-color: rgba(148, 163, 184, 0.22);
}

:root[data-theme="light"] .profile-card:hover {
  background: var(--surface);
  border-color: rgba(37, 99, 235, 0.32);
}
