/* МУРАВЕЙ — экраны профиля: «Профиль», «Редактирование», «Адреса» (owner: profile, docs/CONTRACT.md §7.4).
   Общие компоненты (.card, .field, .banner, .accordion, .info-block, .empty-state) — в common.css. */

/* ===== Шапка профиля ===== */
.profile-hero {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 0 22px;
  text-align: center;
}
.profile-hero .avatar-hex { filter: drop-shadow(0 6px 16px rgba(255, 214, 64, 0.3)); }
.profile-name {
  margin: 6px 0 0;
  font-size: 22px; font-weight: 900; line-height: 1.2; letter-spacing: -0.01em;
  color: #fff; overflow-wrap: anywhere;
}
.profile-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
  margin: 0; padding: 0; list-style: none;
  font-size: 13px; line-height: 1.4; color: var(--text-muted);
}
.profile-meta li {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; overflow-wrap: anywhere;
}
.profile-meta svg { flex-shrink: 0; width: 14px !important; height: 14px !important; color: var(--yellow); }
.profile-meta a { color: var(--yellow); text-decoration: none; }
.profile-meta a:hover { text-decoration: underline; }

/* ===== Список ссылок профиля ===== */
.profile-list { padding: 0; overflow: hidden; }
.profile-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 60px; padding: 10px 14px;
  background: transparent; border: none; border-top: 1px solid var(--line-soft);
  font-family: inherit; font-size: 14px; font-weight: 700; text-align: left; color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}
.profile-row:first-child { border-top: none; }
.profile-row:hover, .profile-row:focus-visible { background: rgba(255, 214, 64, 0.06); }
.profile-row-icon {
  flex-shrink: 0; width: 34px; height: 39px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #FFDE5A 0%, #F0BB10 100%);
  clip-path: var(--hex-clip);
}
.profile-row-icon svg { width: 16px !important; height: 16px !important; color: var(--ink); }
.profile-row-title {
  flex: 1; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; /* a badge wraps under the title */
}
.profile-row .badge { flex-shrink: 0; }
.profile-row-chev { flex-shrink: 0; width: 18px !important; height: 18px !important; color: var(--yellow); opacity: 0.8; }
.profile-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.profile-logout svg { width: 16px !important; height: 16px !important; }

/* ===== Редактирование профиля ===== */
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-pick {
  position: relative; flex-shrink: 0;
  padding: 0; background: none; border: none; border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s;
}
.avatar-pick:active { transform: scale(0.97); }
.avatar-pick .avatar-hex { filter: drop-shadow(0 6px 16px rgba(255, 214, 64, 0.3)); transition: opacity 0.2s; }
.avatar-pick.is-busy .avatar-hex { opacity: 0.4; }
.avatar-pick .photo-spinner { z-index: 2; }
.avatar-pick-camera {
  position: absolute; right: -4px; bottom: -4px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--yellow); color: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg);
}
.avatar-pick-camera svg { width: 16px !important; height: 16px !important; }
.avatar-edit-side { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.avatar-edit-side .link-btn { padding: 4px 0; }
.input[readonly] { opacity: 0.7; cursor: default; }
.profile-password { margin-top: 24px; }
.profile-password .accordion-body { padding-top: 4px; }
.profile-password .form { gap: 14px; }

/* ===== Адреса ===== */
.addr-intro { margin: 0 4px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.addr-list { display: flex; flex-direction: column; gap: 10px; }
.addr-list > .card + .card { margin-top: 0; }
.addr-card { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; }
.addr-hex {
  flex-shrink: 0; width: 34px; height: 39px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #FFDE5A 0%, #F0BB10 100%);
  clip-path: var(--hex-clip);
}
.addr-hex svg { width: 16px !important; height: 16px !important; color: var(--ink); }
.addr-body { flex: 1; min-width: 0; }
.addr-label { font-size: 14px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.addr-text { margin-top: 2px; font-size: 13px; line-height: 1.4; color: rgba(245, 247, 250, 0.75); overflow-wrap: anywhere; }
.addr-delete {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid rgba(248, 113, 113, 0.4); border-radius: 12px;
  color: var(--danger); cursor: pointer;
  transition: background 0.2s;
}
.addr-delete:hover { background: rgba(248, 113, 113, 0.12); }
.addr-delete.busy { opacity: 0.6; cursor: progress; }
.addr-delete svg { width: 18px !important; height: 18px !important; }
.addr-suggest {
  margin: 4px 0 0; padding: 4px; list-style: none;
  max-height: 240px; overflow-y: auto;
  background: #0F2140;
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.addr-suggest-item {
  display: block; width: 100%; padding: 10px 12px;
  background: none; border: none; border-radius: 8px;
  font-family: inherit; font-size: 14px; line-height: 1.35; text-align: left; color: var(--text);
  cursor: pointer;
}
.addr-suggest-item:hover, .addr-suggest-item.active { background: rgba(255, 214, 64, 0.1); }
