.professional-page { display: grid; gap: 28px; }
.profile-hero { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 40px; align-items: start; }
.profile-identity { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 22px; }
.profile-avatar { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; background: #edf4dd; }
.profile-avatar-initials { display: flex; align-items: center; justify-content: center; background: #edf4dd; color: var(--green); font: 700 42px 'DM Sans', sans-serif; letter-spacing: -1px; user-select: none; }
.profile-identity h1 { margin: 5px 0 4px; font: 700 clamp(38px, 4vw, 58px)/.98 Fraunces, serif; letter-spacing: -2.8px; }
.profile-rating { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--green); font-weight: 750; font-size: 14px; }
.profile-rating span { color: var(--muted); font-weight: 500; }
.profile-rating-icon, .profile-meta-icon { width: 15px; height: 15px; stroke-width: 2; }
.profile-bio { max-width: 700px; margin: 11px 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-tags span { padding: 5px 8px; border-radius: 999px; background: #edf4dd; color: var(--green); font-size: 11px; font-weight: 700; }
.profile-actions { display: grid; gap: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 26px #2635250b; }
.profile-actions button, .profile-contact button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 0; }
.profile-actions .profile-report { background: #f1f4ed; color: var(--ink); box-shadow: none; }
.profile-favorite-btn { position: relative; overflow: hidden; transition: all .25s ease; }
.profile-favorite-btn.is-favorited { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; box-shadow: none; }
.profile-favorite-btn.is-favorited svg { color: #dc2626; fill: #ef4444; transition: transform .25s ease, color .25s ease; }
.profile-favorite-btn.is-favorited:hover { background: #ef4444; color: #fff; border-color: #dc2626; }
.profile-favorite-btn.is-favorited:hover svg { color: #fff; fill: none; transform: scale(1.1); }
.profile-favorite-btn .btn-text-active { display: inline; }
.profile-favorite-btn .btn-text-hover { display: none; }
.profile-favorite-btn.is-favorited:hover .btn-text-active { display: none; }
.profile-favorite-btn.is-favorited:hover .btn-text-hover { display: inline; }
.profile-actions p { display: flex; gap: 6px; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.profile-actions p svg { flex: 0 0 auto; color: var(--green); }
.profile-cover-actions-group {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.profile-cover-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  transition: all .2s ease;
  box-shadow: none !important;
}
.profile-cover-action-btn:hover {
  background: #edf4dd;
  border-color: var(--green);
  color: var(--green);
}
.profile-cover-action-btn.btn-delete-cover {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff;
}
.profile-cover-action-btn.btn-delete-cover:hover {
  background: #fee2e2;
  border-color: #dc2626;
  color: #dc2626;
}
.profile-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 15px 0; border-block: 1px solid var(--line); align-items: center; justify-items: center; }
.profile-trust span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.profile-trust svg, .profile-section-title > span svg, .profile-contact > span svg { width: 18px; height: 18px; color: var(--green); stroke-width: 2; flex-shrink: 0; }
.profile-section { display: grid; gap: 13px; }
.profile-section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.profile-section-title h2, .profile-contact h2 { margin: 0; font: 700 25px Fraunces, serif; letter-spacing: -1px; }
.profile-section-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.profile-section-link,
button.profile-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  padding: 4px 6px;
  color: var(--green) !important;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: none !important;
  transition: opacity .2s ease, transform .2s ease;
}
.profile-section-link:hover,
button.profile-section-link:hover,
.profile-section-link:focus,
button.profile-section-link:focus,
.profile-section-link:active,
button.profile-section-link:active {
  opacity: .82;
  transform: translateX(2px) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--green) !important;
}
.profile-section-link svg { width: 14px; height: 14px; stroke-width: 2.2; }

.profile-modal {
  max-width: 820px;
  width: min(820px, 94vw);
  max-height: 86vh;
  padding: 26px 30px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
  position: fixed;
  inset: 0;
  margin: auto;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.profile-modal:not([open]) {
  display: none;
}
.profile-modal[open] {
  display: flex;
  flex-direction: column;
}
.profile-modal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.profile-modal::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px); }
.profile-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.profile-modal-header h2 { margin: 0; font: 700 24px/1.2 Fraunces, serif; letter-spacing: -0.6px; color: var(--ink); }
.profile-modal-header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.profile-modal-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: transparent; border: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; transition: all .2s ease; padding: 0; margin: 0; box-shadow: none; }
.profile-modal-close:hover { background: #edf4dd; color: var(--ink); transform: none; box-shadow: none; }
.profile-modal-content {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.profile-modal-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.profile-services, .profile-portfolio, .profile-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile-service-card, .profile-portfolio-card, .profile-review-card, .profile-empty { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.profile-service-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 94px; padding: 13px; }
.profile-service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: #edf4dd; color: var(--green); }
.profile-icon { width: 22px; height: 22px; stroke-width: 2; }
.profile-service-card h3, .profile-portfolio-card h3 { margin: 0 0 4px; font-size: 13px; line-height: 1.25; }
.profile-service-card p, .profile-portfolio-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.profile-portfolio-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  user-select: none;
}
.profile-portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}
.profile-media {
  display: block;
  width: 100%;
  height: 166px;
  object-fit: cover;
  background: #edf4dd;
  transition: transform .3s ease;
}
.profile-portfolio-card:hover .profile-media {
  transform: scale(1.04);
}
.profile-portfolio-card:hover h3 {
  color: var(--green);
  transition: color .2s ease;
}
.profile-portfolio-card > div { display: grid; gap: 5px; padding: 11px; }
.profile-portfolio-card small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; }
.profile-review-card { display: grid; gap: 10px; min-height: 138px; padding: 13px; }
.profile-review-head { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.profile-review-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edf4dd; color: var(--green); font-size: 10px; font-weight: 800; }
.profile-review-head b, .profile-review-head small { display: block; }
.profile-review-head b { font-size: 11px; }
.profile-review-head small { color: var(--muted); font-size: 10px; }
.profile-review-score { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-size: 11px; font-weight: 700; }
.profile-review-card > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.profile-empty { display: grid; grid-column: 1 / -1; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 118px; padding: 20px; }
.profile-empty > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #edf4dd; color: var(--green); }
.profile-empty-icon { width: 21px; height: 21px; stroke-width: 2; }
.profile-empty h3 { margin: 0 0 3px; font-size: 14px; }
.profile-empty p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-contact { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 19px; border-radius: 14px; background: linear-gradient(90deg, #eef8df, #f9fbf6); }
.profile-contact > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #dff0d4; }
.profile-contact .eyebrow { margin: 0; font-size: 10px; }
.profile-contact h2 { font-size: 21px; }
.profile-contact p:not(.eyebrow) { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 860px) { .profile-hero { grid-template-columns: 1fr; } .profile-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } .profile-actions p { grid-column: 1 / -1; } .profile-services, .profile-portfolio, .profile-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .profile-modal { padding: 20px 16px; width: 95vw; } .profile-modal-content { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 600px) { .profile-identity { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; } .profile-avatar { width: 76px; height: 76px; } .profile-identity h1 { font-size: 36px; } .profile-actions, .profile-trust, .profile-services, .profile-portfolio, .profile-reviews { grid-template-columns: 1fr; } .profile-section-title { align-items: start; flex-direction: column; } .profile-contact { grid-template-columns: 44px minmax(0, 1fr); } .profile-contact > span { width: 44px; height: 44px; } .profile-contact button { grid-column: 1 / -1; width: 100%; } }
