/* Mood profile hub */
.profile-hub {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card, var(--surface-2)) 88%, var(--accent) 12%);
}

.profile-hero__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  overflow: hidden;
}

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

.profile-hero__body {
  flex: 1;
  min-width: 0;
}

.profile-hero__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 4px;
}

.profile-hero__meta {
  font-size: 12px;
  color: var(--text-muted, var(--muted));
  margin: 0;
}

.profile-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card, var(--surface-2));
  color: var(--text-muted, var(--muted));
  cursor: default;
}

.profile-pill--ok {
  border-color: color-mix(in srgb, var(--success-text, #22c55e) 40%, var(--border));
  color: var(--success-text, #22c55e);
  background: color-mix(in srgb, var(--success-text, #22c55e) 10%, transparent);
}

.profile-pill--warn {
  border-color: color-mix(in srgb, var(--warning-text, #f59e0b) 40%, var(--border));
  color: var(--warning-text, #f59e0b);
  background: color-mix(in srgb, var(--warning-text, #f59e0b) 10%, transparent);
}

.profile-pill--link {
  cursor: pointer;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.profile-pill--link:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.profile-hub-card {
  padding: 0;
}

.profile-hub-card > .profile-section__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.profile-section__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.profile-section__sub {
  font-size: 12px;
  color: var(--text-muted, var(--muted));
  margin: 4px 0 0;
  line-height: 1.35;
}

.profile-section__body {
  padding: 12px 16px 16px;
}

.profile-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card, var(--surface-2)) 96%, var(--text) 4%);
}

.profile-contact-row__ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.profile-contact-row__ico svg {
  width: 18px;
  height: 18px;
}

.profile-contact-row__body {
  flex: 1;
  min-width: 0;
}

.profile-contact-row__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, var(--muted));
  margin-bottom: 2px;
}

.profile-contact-row__value {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.profile-contact-row__hint {
  font-size: 11px;
  color: var(--text-muted, var(--muted));
  margin-top: 4px;
  line-height: 1.35;
}

.profile-contact-row__action {
  flex-shrink: 0;
}

.profile-identity-display {
  display: grid;
  gap: 10px;
}

.profile-identity-read {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card, var(--surface-2)) 96%, var(--text) 4%);
}

.profile-identity-read__label {
  font-size: 12px;
  color: var(--text-muted, var(--muted));
}

.profile-identity-read__val {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.profile-identity-cta {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.profile-identity-cta p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted, var(--muted));
}

.profile-legacy-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.profile-verify-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 1200);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(5, 8, 13, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 12px;
}

html[data-theme="light"] .profile-verify-sheet {
  background: rgba(16, 24, 40, 0.44);
}

body.profile-verify-sheet-open {
  overflow: hidden;
}

.profile-verify-sheet.hidden {
  display: none;
}

.profile-verify-sheet__panel {
  width: min(480px, 100%);
  max-height: min(88dvh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card, var(--surface-2));
  border-radius: 18px 18px 12px 12px;
  border: 1px solid var(--border);
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 24px 64px color-mix(in srgb, #04110f 28%, transparent);
}

.profile-verify-sheet__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.profile-verify-sheet__title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.profile-verify-sheet__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text-muted, var(--muted));
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.profile-verify-sheet__close:hover {
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.profile-verify-sheet .profile-phone-verify-inline,
.profile-verify-sheet .profile-verify-code-row {
  margin-top: 0;
}

.profile-verify-sheet .profile-verify-code-row {
  flex-wrap: wrap;
}

.profile-hub .profile-form-actions {
  padding: 4px 0 8px;
}

.profile-hub .profile-telegram-block,
.profile-hub .profile-referral-block {
  margin-top: 0;
}

@media (min-width: 720px) {
  .profile-verify-sheet {
    align-items: center;
  }

  .profile-verify-sheet__panel {
    border-radius: 18px;
  }
}
