/* ══════════════════════════════════════════
   PROFILE POPUP
══════════════════════════════════════════ */

.prof-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Клик вне попапа закрывает — через JS */
}

.prof-popup {
  pointer-events: all;
  position: absolute; top: 54px; right: 12px;
  width: 360px; max-height: calc(100vh - 100px);
  background: rgba(10,15,24,.98);
  border: 1px solid var(--steel-hi);
  box-shadow: 0 8px 48px rgba(0,0,0,.7), 0 0 0 1px rgba(200,162,39,.1);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: ms-slide-in .2s cubic-bezier(.16,1,.3,1);
  clip-path: polygon(12px 0%,100% 0%,100% calc(100% - 12px),calc(100% - 12px) 100%,0% 100%,0% 12px);
}

/* ── Хедер ── */
.prof-hdr {
  flex-shrink: 0; position: relative;
  background: linear-gradient(180deg, rgba(42,53,69,.8), rgba(14,21,32,.9));
  border-bottom: 1px solid var(--steel-hi);
  padding: 20px 16px 16px;
  display: flex; align-items: flex-end; gap: 14px;
}
.prof-hdr-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(200,162,39,.05) 0%, transparent 60%);
}
.prof-hdr-bg::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 60%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.prof-close {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--txt-lo); font-size: 14px; padding: 4px;
  transition: color var(--transition);
}
.prof-close:hover { color: var(--red); }

/* Аватар */
.prof-avatar-wrap { flex-shrink: 0; }
.prof-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle, #2a3545, #0e1520);
  border: 3px solid; box-shadow: 0 0 20px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700; color: var(--gold);
  position: relative;
}
.prof-avatar-online {
  position: absolute; bottom: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 2px solid rgba(10,15,24,.98);
  box-shadow: 0 0 6px var(--green);
}

.prof-identity  { flex: 1; min-width: 0; }
.prof-callsign  { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 3px; }
.prof-name      { font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700; color: var(--txt-hi); letter-spacing: .5px; line-height: 1.1; }
.prof-role      { font-size: 10px; color: var(--txt-lo); margin-top: 3px; }

.prof-rating-wrap { flex-shrink: 0; text-align: center; }
.prof-rating-num  { font-family: 'Share Tech Mono', monospace; font-size: 28px; color: var(--gold-hi); line-height: 1; }
.prof-rating-stars{ font-size: 11px; color: var(--gold); letter-spacing: 1px; margin: 2px 0; }
.prof-rating-sub  { font-size: 8px; color: var(--txt-lo); letter-spacing: 1px; }

/* ── Тело ── */
.prof-body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}

/* Кольца */
.prof-rings {
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--steel-hi);
}
.prof-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* Финансы */
.prof-finance {
  text-align: center; padding: 12px;
  background: rgba(47,214,122,.06); border: 1px solid rgba(47,214,122,.2);
  clip-path: polygon(8px 0%,100% 0%,100% calc(100% - 8px),calc(100% - 8px) 100%,0% 100%,0% 8px);
}
.prof-finance-label { font-size: 8px; color: var(--green); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 4px; }
.prof-finance-val   { font-family: 'Share Tech Mono', monospace; font-size: 24px; color: var(--green); }
.prof-finance-sub   { font-size: 9px; color: var(--txt-lo); margin-top: 2px; }

/* Секции */
.prof-section-title {
  font-family: 'Rajdhani', sans-serif; font-size: 9px; font-weight: 700;
  color: var(--gold); letter-spacing: 4px; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid rgba(200,162,39,.2);
}

/* Навыки */
.prof-skills { display: flex; flex-direction: column; gap: 8px; }
.prof-bar-row { display: flex; align-items: center; gap: 8px; }
.prof-bar-label { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: var(--txt-lo); width: 72px; flex-shrink: 0; }
.prof-bar-track { flex: 1; height: 4px; background: rgba(42,53,69,.8); border-radius: 2px; overflow: hidden; }
.prof-bar-fill  { height: 100%; border-radius: 2px; transition: width .6s ease; }
.prof-bar-val   { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: var(--txt-lo); width: 22px; text-align: right; flex-shrink: 0; }

/* Значки */
.prof-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.prof-badge  {
  display: flex; align-items: center; gap: 5px;
  border: 1px solid; padding: 4px 8px;
  background: rgba(0,0,0,.3);
}
.prof-badge-icon { font-size: 13px; }
.prof-badge-lbl  { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }

/* Отзывы */
.prof-reviews { display: flex; flex-direction: column; gap: 8px; }
.prof-review  {
  padding: 10px 12px;
  background: rgba(42,53,69,.3); border: 1px solid var(--steel-hi);
  border-left: 2px solid rgba(200,162,39,.4);
}
.prof-review-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
}
.prof-review-client { font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700; color: var(--txt-hi); flex: 1; letter-spacing: .5px; }
.prof-review-stars  { font-size: 10px; color: var(--gold); letter-spacing: 1px; }
.prof-review-date   { font-family: 'Share Tech Mono', monospace; font-size: 8px; color: var(--txt-lo); }
.prof-review-text   { font-size: 11px; color: var(--txt-lo); line-height: 1.6; }

/* Действия */
.prof-actions { display: flex; gap: 8px; }
.prof-btn-edit {
  flex: 1; height: 38px; padding: 0 12px;
  background: rgba(200,162,39,.1); border: 1px solid rgba(200,162,39,.35); color: var(--gold);
  font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  clip-path: polygon(6px 0%,100% 0%,100% calc(100% - 6px),calc(100% - 6px) 100%,0% 100%,0% 6px);
  transition: all var(--transition);
}
.prof-btn-edit:hover { background: rgba(200,162,39,.2); }
.prof-btn-share {
  height: 38px; padding: 0 14px;
  background: rgba(42,53,69,.5); border: 1px solid var(--steel-hi); color: var(--txt-lo);
  font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; transition: all var(--transition);
  clip-path: polygon(6px 0%,100% 0%,100% calc(100% - 6px),calc(100% - 6px) 100%,0% 100%,0% 6px);
}
.prof-btn-share:hover { border-color: var(--teal); color: var(--teal); }

.prof-since {
  text-align: center; font-family: 'Share Tech Mono', monospace;
  font-size: 8px; color: var(--txt-lo); letter-spacing: 1px;
  padding-top: 4px; border-top: 1px solid var(--steel-hi);
}
