/* ═══════════════════════════════════════════════════════════
   Profile Page — modal-style overlay
   ═══════════════════════════════════════════════════════════ */

.prof-page {
  max-width: 480px; margin: 0 auto;
  padding: 72px 20px 100px;
  position: relative;
}

/* ── Prominent Back Button ─────────────────────────────── */
.prof-back-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.prof-back-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.prof-back-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.prof-back-btn svg { flex-shrink: 0; }
.prof-back-label {
  font-size: 13px; color: var(--muted); font-weight: 500;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.prof-header { text-align: center; margin-bottom: 24px; }

.prof-avatar-wrap {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 14px; position: relative;
  cursor: pointer; overflow: hidden;
}
.prof-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.prof-avatar-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--accent-dim); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: var(--accent);
}
.prof-avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  color: white;
}
.prof-avatar-wrap:hover .prof-avatar-overlay { opacity: 1; }

.prof-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.prof-email { font-size: 14px; color: var(--muted); }

/* Stats */
.prof-stats {
  display: flex; justify-content: center; gap: 32px;
  margin: 20px 0 32px; padding: 16px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.prof-stat { text-align: center; }
.prof-stat-num { display: block; font-size: 22px; font-weight: 800; color: var(--accent); }
.prof-stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* Form */
.prof-form {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 32px;
}
.prof-label {
  font-size: 13px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
  margin-top: 8px;
}
.prof-input {
  width: 100%; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 15px; outline: none;
  transition: border-color var(--transition);
}
.prof-input:focus { border-color: var(--accent); }

.prof-regions {
  display: flex; flex-direction: column; gap: 8px;
}
.prof-region-check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 14px; font-weight: 600;
  transition: border-color var(--transition);
}
.prof-region-check:hover { border-color: var(--accent); }
.prof-region-check input[type="checkbox"] {
  accent-color: var(--accent); width: 18px; height: 18px;
}

/* Sticky save bar at bottom */
.prof-save-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 20;
  background: rgba(8,12,21,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.prof-save-btn {
  width: 100%; max-width: 480px; padding: 13px;
  background: var(--accent); color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  transition: filter var(--transition);
}
.prof-save-btn:hover { filter: brightness(1.1); }

.prof-status { min-height: 20px; text-align: center; font-size: 14px; }

/* Friend Code */
.prof-section {
  padding-top: 24px; border-top: 1px solid var(--border);
}
.prof-section h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
}
.prof-friend-code {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.prof-friend-code code {
  font-size: 18px; font-weight: 700; letter-spacing: .06em; color: var(--accent);
}
.prof-copy-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all var(--transition);
}
.prof-copy-btn:hover { background: var(--surface2); color: var(--accent); }
.prof-code-hint {
  font-size: 13px; color: var(--muted); margin-top: 8px;
}
