.profile-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: 8px;
  padding: 4px 10px;
  background: #12121a;
  border: 1px solid #2e2e42;
  border-radius: 10px;
  font-size: 0.72rem;
}

.profile-bar label {
  color: #888;
  white-space: nowrap;
}

.profile-bar .profile-hint {
  color: #6a8;
  font-size: 0.68rem;
  max-width: 220px;
  line-height: 1.2;
}

.profile-bar select {
  background: #1e1e2a;
  border: 1px solid #3a3a4a;
  color: #e8e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  max-width: 140px;
}

.profile-btn {
  background: #252532;
  border: 1px solid #3a3a4a;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: #bbb;
  cursor: pointer;
  font-family: inherit;
}

.profile-btn:hover {
  border-color: #9b7fff;
  color: #fff;
}

.profile-btn.danger {
  border-color: #5a2020;
  color: #f0a0a0;
  background: #1a1010;
}

.profile-btn.danger:hover {
  border-color: #ef4444;
  color: #fecaca;
}

.profile-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#profile-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#profile-modal-overlay.open {
  display: flex;
}

.profile-modal {
  background: #16161f;
  border: 1px solid #3a3048;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.profile-modal-header {
  background: linear-gradient(135deg, #2a1020 0%, #1a1028 100%);
  padding: 18px 20px;
  border-bottom: 1px solid #4a2030;
}

.profile-modal-header h2 {
  font-size: 1rem;
  color: #fecaca;
  margin-bottom: 6px;
}

.profile-modal-header p {
  font-size: 0.78rem;
  color: #c4a0a0;
  line-height: 1.5;
}

.profile-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-warn-box {
  background: #1a1210;
  border: 1px solid #6a3030;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e8d0d0;
}

.profile-warn-box strong {
  color: #fca5a5;
}

.profile-warn-box ul {
  margin: 8px 0 0 18px;
}

.profile-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: #ccc;
  cursor: pointer;
  line-height: 1.45;
}

.profile-check input {
  margin-top: 3px;
  accent-color: #ef4444;
}

.profile-field label {
  display: block;
  font-size: 0.72rem;
  color: #888;
  margin-bottom: 4px;
}

.profile-field input {
  width: 100%;
  background: #0f0f16;
  border: 1px solid #3a3a4a;
  border-radius: 8px;
  padding: 8px 10px;
  color: #f0f0f8;
  font-size: 0.82rem;
  font-family: inherit;
}

.profile-field input:focus {
  border-color: #9b7fff;
  outline: none;
}

.profile-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px 18px;
  border-top: 1px solid #2a2a3a;
}

.profile-step-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 4px;
}
